https://prefect.io logo
h

Hung Hoang

09/08/2023, 2:34 AM
hi guys, is there any way to submit/apply a deployment to prefect cloud without activating it what I meant is that I don’t want my deployment runs right away after submitted to the cloud
1
j

Jake Kaplan

09/08/2023, 5:14 AM
Hey, you can choose not to put it on a schedule, or put it on a schedule and pause the deployment. While paused it won’t generate scheduled runs
h

Hung Hoang

09/08/2023, 5:14 AM
or put it on a schedule and pause the deployment
can we do it in code ? @Jake Kaplan
j

Jake Kaplan

09/08/2023, 5:18 AM
how are you creating your deployments? With build from flow and apply?
if so there is a is_schedule_active parameter you can set to false
theres also cli commands or just using the prefect client to pause the schedule
h

Hung Hoang

09/08/2023, 9:10 AM
is_schedule_active
works for me many thanks Kaplan