@Marvin If I am running a deployed flow as an ECS task, when the flow execution is paused, is the ECS task still in a running state and thus incurring a charge?
m
Marvin
01/17/2025, 9:33 PM
When a Prefect flow is paused, the flow code is still running but is blocked until it is resumed. This means that if your flow is running as an ECS task, the ECS task will remain in a running state and continue to incur charges during the pause. If cost savings are a concern, you might consider suspending the flow instead, which would terminate the ECS task and halt charges until the flow is resumed. However, note that upon resumption, the flow will restart from the beginning unless task caching is used.
For more information on Prefect flow pausing and ECS tasks, you can refer to the following resources:
- Prefect Pause and Resume Guide
- Prefect ECS Guide
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.