When I cancel the workflow in Prefect cloud, it is...
# prefect-aws
v
When I cancel the workflow in Prefect cloud, it is not stopping the task in ECS, Is there a way to do that, probably in ECS task block configuration?
z
Is your ECS worker / agent running? It is responsible for stopping the task
You should be able to see logs on the agent regarding the cancellation
v
@Zanie this could be a dumb question but is ECS agent different from Prefect agent?
z
Nope, sorry. There’s an “ECS Worker” that only runs flows on ECS that is replacing the “Prefect agent” which can run flows anywhere.
If you’re using the agent, then thats the place to look.
v
I'm sorry I still couldn't follow you, I have a prefect agent which deploys a workflow as ECS task, and also an automation which is cancelling the workflow after running for more than 8 hrs. In my Prefect cloud it shows cancelled but that is not stopping the ECS task in AWS