Hello, everyone! I have some questions regarding l...
# ask-the-community
m
Hello, everyone! I have some questions regarding launch plans and scheduling. 1. I'm not sure how I'm supposed to create new launch plans for a project. Do they have to be defined in the same file as the workflows? Can I create a separate file, and Flyte will find/run them? 2. To set a cron schedule to a launch plan, do I necessarily need to define an input on the workflow that will be solely used as the kickoff time? Can't I just define a CronSchedule of monthy execution (for instance), so that the scheduler will run the launch plan a month from now? 3. Is it possible to define scheduled launch plans as YAML files, like it's possible for executions? If so, what fields do I need to define? I feel like saving the launch plans as YAML files will result in a more organized code.
y
1. You can define the launch plan in same file check example here https://docs.flyte.org/projects/cookbook/en/latest/auto/core/scheduled_workflows/lp_schedules.html#cron-schedules (https://github.com/flyteorg/flytesnacks/blob/master/cookbook/core/scheduled_workflows/lp_schedules.py), You can leave the aws scheduler setup, By default flyte use flytescheduler 2. https://github.com/flyteorg/flytesnacks/blob/master/cookbook/core/scheduled_workflows/lp_schedules.py#L92 3. Yes you can,
flytectl get launchplan --project flytesnacks --domain development {launchplan}  --latest --execFile exec_spec.yaml
CC: @Prafulla Mahindrakar
m
Thank you for your answer!
167 Views