Hello everyone, We trying to migrate from Prefect ...
# ask-community
j
Hello everyone, We trying to migrate from Prefect agent to Prefect ECS Worker and the prefect flows are getting stuck in pending: Looking at the logs, it was able to provision the ECS Tasks but it quickly stopped after it ran. Looking closely at the prefect container, it exit with
Essential container in task exited
. It also looks like that there is no command being passed in the prefect container( See the screenshot) is this expected?
I had to set to Container Name in work pool manually and this resolved my issue. For some reason, it cannot detect my prefect container even if it named with the default value
prefect
👀 1
p
hello @Jezreel Zamora! I’m having the same issue, I tried your solution but it keeps stuck on pending state, the ECS task ran perfectly and I’m getting the same logs you shared in your screenshot, did you do anything else? thank you 🙏
j
@Paula Lasalas nothing else, does your Task definition’s containerDefinition have a container named
prefect
? In my case, the Prefect Worker failed to passed the necessary command to the main container(
prefect
), setting the Container Name in the work pool fixed it for me. Check your ECS task run ->
prefect
container, and
Command
should have a value of `["prefect","flow-run","execute"]`if it works correctly,
🙌 1
p
thank you @Jezreel Zamora