<@ULVA73B9P> If I am running a deployed flow as an...
# ask-marvin
r
@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
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