Prerequisites
To manage deployment schedules, you need:- A Prefect server or Prefect Cloud workspace
- One or more deployments with schedules
- Prefect installed
Manage specific schedules
To pause or resume individual deployment schedules, you need the deployment name and schedule ID.List schedules for a deployment
First, list the schedules to get the schedule ID:Pause a specific schedule
Resume a specific schedule
Manage schedules in bulk
When you have many deployments with active schedules, you can pause or resume all of them at once using the--all
flag.
Pause all schedules
Use the--all
flag with the pause
command to pause all active schedules across all deployments:
Resume all schedules
Similarly, use the--all
flag with the resume
command to resume all paused schedules:
Skip confirmation prompt
To skip the interactive confirmation (useful for CI/CD pipelines or scripts), use the--no-prompt
flag:
Use cases
Maintenance windows
Pause all schedules during system maintenance:Development environment management
Quickly pause all schedules in a development environment:Important notes
Use caution with bulk operationsThe
--all
flag affects all deployment schedules in your workspace.
In interactive mode, you’ll be prompted to confirm the operation showing the exact number of schedules that will be affected.
Always verify you’re in the correct workspace/profile before running bulk operations.See also
- Create schedules - Learn how to create schedules for your deployments
- Run deployments - Learn how to trigger deployment runs manually
- Deployment concepts - Understand deployments and their schedules