Hi, can we specify workflow version in LaunchPlan....
# ask-the-community
p
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
cc: @Samhita Alla @Ketan (kumare3)
k
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
@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.
102 Views