https://flyte.org logo
#ask-the-community
Title
# ask-the-community
p

Padma Priya M

10/05/2022, 5:58 AM
Hi, can we specify workflow version in LaunchPlan.get_or_create method.
Copy code
cron_lp = LaunchPlan.get_or_create(
    name="cron_scheduler",
    workflow=scheduler_workflow,
    schedule=CronSchedule(
        schedule="*/1 * * * *",
    ),
    default_inputs={'f': 4.5},
)
s

Sanjay Chouhan

10/05/2022, 12:40 PM
cc: @Samhita Alla @Ketan (kumare3)
k

Ketan (kumare3)

10/06/2022, 12:56 AM
hmmm not to launchplan.get. If you want to programmatically create a launchplan - using flytekit.remote
this can be done using jupyternotebook, scripts etc
s

Samhita Alla

10/06/2022, 6:43 AM
@Padma Priya M @Sanjay Chouhan, when you register a launch plan, you aren’t sending an already registered workflow as an input to it. It’s the workflow name. When registering it, the workflow gets registered as well and the launch plan will be associated with that workflow. So I’m guessing version doesn’t make sense in this case.
24 Views