Arun
09/09/2024, 9:43 PMtask_definition_arn we have set as override in the deployments aren't being respected anymore. Turns out the default command we have used from the prefect-aws guide pip install prefect-aws && prefect worker start has started to install prefect-aws==0.5.0 which is now installing Prefect 3 and that's not respecting task_definition_arn value and generates its own task definition. To start with there is the incompatibility in Prefect 2 in the server and Prefect 3 in the ECS Worker and ignoring the task_arn seems to be an undocumented regression.
The solution is to change the worker command in its task definition to: pip install prefect-aws==0.4.19 && prefect worker startNate
09/09/2024, 10:06 PMprefect and its integrations are prefect 3.x versions now
if you simply install extras like prefect[aws]<3 you will always get the right version of the package
i would also recommend not installing deps at runtime and building static images up frontArun
09/15/2024, 8:45 AMDaniel Carleton
11/21/2024, 1:27 PMtask_definition_arn and runs flows successfully? I can get the worker (w/ prefect-aws==0.4.19 installed) to start ECS tasks using the provided task_definition_arn, but it doesn't supply a command to ecs:StartTask, which I gather needs to be python -m prefect.engine [task-run-id].