prefect icon indicating copy to clipboard operation
prefect copied to clipboard

It is not possible to customise ECS task docker command on custom images

Open giacomochiarella opened this issue 2 years ago • 0 comments

https://github.com/PrefectHQ/prefect/blob/1e550ef0490154ee1e7d308fa2ba452d207014e5/src/prefect/agent/ecs/agent.py#L505

The hard coded command makes impossible to run ECS tasks using custom docker images having custom entry points/commands. If the hard coded command is commented, the task is created and runs as expected but in Prefect UI is always in "Submitted" state (meanwhile the task itself finished successfully). Also task logs, that I can see in cloudwatch, are not showed in Prefect UI. My configuration is exactly the same in https://docs.prefect.io/api/latest/run_configs.html#ecsrun and I'm using S3 storage. How can I run my custom images?

giacomochiarella avatar Jul 26 '22 15:07 giacomochiarella