Ole
02/07/2025, 2:11 PMMarvin
02/07/2025, 2:14 PMsuspend_flow_run
and resume_flow_run
functions. These functions allow you to suspend flow runs, which can be useful for pausing operations during server maintenance or upgrades. However, note that when a flow run is suspended, it exits completely, and the infrastructure running it is torn down. When resumed, the flow code will execute from the beginning of the flow, so task caching is recommended to avoid recomputing expensive operations.
For your scenario, ensure all running flows and tasks complete before suspending new runs. You can manage this through the Prefect UI or programmatically using the mentioned functions.
For more details, you can refer to the Prefect documentation on pause and resume.
If you need to configure server settings, such as temporarily stopping the server API, you might consider adjusting server settings via environment variables or configuration files. More information can be found in the Prefect settings reference.
Remember, in Prefect 3.x, agents are replaced by workers, so ensure your setup aligns with these changes.Ole
02/07/2025, 2:16 PMMarvin
02/07/2025, 2:17 PM