Unfortunately, it looks like there isn't a clear, documented method to pause the schedule of a deployment from within a flow.
However, based on the insights gathered, there are ways to handle scheduling within Prefect, such as using a client to programmatically create flow runs with specific states or scheduling subflows. You might have to get creative with setting up different states or using external triggers to manage scheduling dynamically.
For more details and potential suggestions, you can delve into Prefect’s
Scheduler concepts and
API client documentation.
If you need more tailored help, consider reaching out on the
Prefect Discourse or
Slack Community.
If you have any other questions, feel free to ask.