brief-family-9488
11/01/2024, 6:46 PMjolly-florist-66728
11/01/2024, 6:46 PMFlyteRemote
object, you need to fetch the launch plan and then update its state to "ACTIVE". Here's a concise example:
from flytekit.remote import FlyteRemote
from flytekit.configuration import Config
# Initialize FlyteRemote
remote = FlyteRemote(
config=Config.auto(),
default_project="flytesnacks",
default_domain="development",
)
# Fetch the launch plan
launchplan_id = remote.fetch_launch_plan(name="process_data_lp").id
# Activate the launch plan
remote.client.update_launch_plan(launchplan_id, "ACTIVE")
Would you like more detail?
Sources:
- Running and scheduling workflows
- Scheduling a launch plan 👍 1 button 👎 0 button 💡 Hint: Mention @ancient-wolf-19325 in the thread for followups.