Simon Rascovsky
05/08/2023, 11:59 PMMarvin
05/09/2023, 12:01 AM--cron
flag:
prefect deployment build demo.py:pipeline -n etl --cron "0 0 * * *"
2. After building the deployment, you can pause the schedule using the pause-schedule
command:
prefect deployment pause-schedule -n etl
This will pause the schedule for the deployment named "etl". When you're ready to resume the schedule, you can use the resume-schedule
command:
prefect deployment resume-schedule -n etl
Now you have a deployment with a paused schedule that you can resume whenever you feel like it. Isn't it nice to have control over time? If only we could do that in real life. Source