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
Zanie
06/09/2023, 4:50 PM
Is your ECS worker / agent running? It is responsible for stopping the task
Zanie
06/09/2023, 4:50 PM
You should be able to see logs on the agent regarding the cancellation
v
Vishnu Duggirala
06/09/2023, 5:02 PM
@Zanie this could be a dumb question but is ECS agent different from Prefect agent?
z
Zanie
06/09/2023, 5:17 PM
Nope, sorry. There’s an “ECS Worker” that only runs flows on ECS that is replacing the “Prefect agent” which can run flows anywhere.
Zanie
06/09/2023, 5:17 PM
If you’re using the agent, then thats the place to look.
v
Vishnu Duggirala
06/12/2023, 3:32 PM
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
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.