https://prefect.io logo
k

Kyle McChesney

07/30/2021, 9:35 PM
Has anyone seen the following error:
An error occurred (InvalidParameterException) when calling the RunTask operation: Task definition does not support launch_type FARGATE.
I am running a flow via an ECS agent. It worked just fine until I specified a custom value for
image
when submitting the job via the UI. The image I specified was for an ECR image
k

Kevin Kho

07/30/2021, 9:40 PM
Hey @Kyle McChesney, what version are you on of Prefect?
k

Kyle McChesney

07/30/2021, 9:42 PM
agent: prefecthq/prefect:0.14.13-python3.8
Dockerfile for image in question
Copy code
FROM prefecthq/prefect:0.15.3

RUN pip install pandas s3fs biopython
server stuffg:
Copy code
image: prefecthq/apollo:core-0.15.2
    image: prefecthq/server:core-0.15.2
    image: prefecthq/ui:core-0.15.2
maybe the agent just needs to be updated?
k

Kevin Kho

07/30/2021, 9:43 PM
There was a fix in 0.14.15 I think so you might have to upgrade your agent and the version of script registration
k

Kyle McChesney

07/30/2021, 10:00 PM
okay i re-tried
everything on 0.15.3 and same issue
k

Kevin Kho

07/30/2021, 10:05 PM
Maybe you need to set the requiresCompatibilities? https://stackoverflow.com/a/55009899
k

Kyle McChesney

07/30/2021, 10:14 PM
I am not overwriting the task definition registration configuration as far as I can tell. So seems like I would need to provide
--task-definition
to the agent start command. And then point it to a yaml file with the
requiresCompatibilities
stuff
actually I think that did solve it. I forgot that updating the services task def doesn’t reboot it!
👍 1
3 Views