Hi everyone I just deployed a flow with Docker sto...
# ask-community
b
Hi everyone I just deployed a flow with Docker storage and ECS Agent, and on my dockerfile I do:
Copy code
ENTRYPOINT ["make", "deploy"]
and when I ran the flow no logs came to the UI at all (as expected, I think), because the container threw an error with “make” (probably because directory config and etc so no worries about it) so the flow is still in the “submitted” state, even though the actual ECS task has already failed. Is there any way to have better visibility of when that happens? in case a dev forgets to remove the entrypoint from the dockerfile..
n
Hi @Bruno Murino - this may be worth opening a ticket for though you can also use an automation if you're on Prefect Cloud to set some threshold for runs that don't start as expected (and then trigger an alert, cancel the run etc)
z
Hm, the agents are designed not to keep track of jobs they've launched although perhaps we can add a check in the ECSAgent for immediate failure. The issue here is that we never reached Prefect code in the ECS task (due to a bad entry point) so we never get more state information. I can open an issue to track addressing this, although I can't guarantee we'll do so.
upvote 1
@Marvin open "Add task-checking to
ECSAgent
to ensure startup succeeds"
b
thanks for creating the issue, thanks for the help!