Ron
01/22/2025, 6:11 PMMarvin
01/22/2025, 6:11 PMprefect deploy
command or by editing the prefect.yaml
file of a deployment.
For more detailed scheduling options and configurations, you can refer to the Prefect Scheduling Documentation.
If you need a flow to trigger another run programmatically, you might consider using Prefect's API to create a new flow run from within a flow, but this would require additional handling outside of standard scheduling.Nate
01/22/2025, 6:13 PMprefect.flow-run.Completed
on your flowMarvin
01/22/2025, 6:13 PMrun_deployment
in an on_completion
hook: You can set up an on_completion
hook in your flow to call run_deployment
, which will trigger another run of the same or a different deployment. This is a programmatically defined way to create a new flow run upon the completion of the current one.
2. Using a prefect.flow-run.Completed
trigger: You can set up a trigger that listens for the prefect.flow-run.Completed
event. This trigger can be configured to initiate a new flow run when the current flow run completes. It's part of Prefect's event-driven architecture, allowing for reactive automation based on flow run states.
For more details on setting up these configurations, you can explore the Prefect Automations and Triggers Documentation.Nate
01/22/2025, 6:16 PMRon
01/22/2025, 6:23 PMNate
01/22/2025, 6:24 PMRon
01/22/2025, 6:26 PMNate
01/22/2025, 6:27 PMNate
01/22/2025, 6:28 PMRon
01/22/2025, 6:29 PMNate
01/22/2025, 6:30 PMRon
01/22/2025, 6:31 PMNate
01/22/2025, 6:32 PMrun_deployment
or the events system to create the scheduled run
the scheduled run will just bounce around server side until there's a worker (on our side in push pools, on your side if traditional "hybrid" work pool) that sees the scheduled run and submits it to the runtime (your ECS cluster)Ron
01/22/2025, 6:48 PMNate
01/22/2025, 6:50 PMRon
01/29/2025, 8:02 PM