Hey :wave: One of my colleague has a launch plan s...
# flyte-support
f
Hey 👋 One of my colleague has a launch plan set in the flyte sandbox that runs on a daily basis. They have been facing an issue where the launch plan was not triggering after a month of registering it. Is there any kind of settings in the sandbox, where the launch plan gets deactivated after some time period ?
v
@faint-machine-61752, this is unexpected. Can you give more details? How was the launchplan defined? Can you confirm that it shows up as active in the UI?
f
@fresh-elephant-21243 should be able to provide more details here. As far as I remember, the UI for the sandbox is not the latest one where it shows active for the launch plans.
f
Hi, yes we're not using the latest version UI yet so not seeing if it's active or not. This is our launch-plan code.
daily_predict_run
Copy code
from flytekit import (
    LaunchPlan,
    CronSchedule,
)
LaunchPlan.get_or_create(
    name="daily_predict_run",
    schedule=CronSchedule(schedule="0 0 * * *"),
    workflow=wf,
    fixed_inputs={"row_number_limit": 300 },
)
When I tried to activate the launch plan "my_version" (after a month, when the launch plan is no longer triggered), it turned out it's deactivated.
flytectl update launchplan -p flyte-sandbox -d development daily_predict_run --version="my_version" --activate
Copy code
The following changes are to be applied.
--- before
+++ after
@@ -1,2 +1,2 @@
-state: 0
+state: 1
f
@high-accountant-32689 Do you see any issue based on the above provided details ? 🙂
h
This is very unexpected, @faint-machine-61752. Do you see any restarts of the sandbox? Do you ingest the sandbox logs by any chance (so that we can correlate any restarts with this)? Also, can you confirm how you're starting the sandbox?
g
@damp-lion-88352 I think you also run into the same issue
f
It seems that our issue may be related to the deletion settings for metadata in our S3 bucket. So it doesn't appear to be an issue with flyte sandbox, sorry!
h
no worries. Great that this got sorted out. 🙂
🙏 1