Thread
#prefect-community
    Kyle McChesney

    Kyle McChesney

    1 year ago
    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
    Kevin Kho

    Kevin Kho

    1 year ago
    Hey @Kyle McChesney, what version are you on of Prefect?
    Kyle McChesney

    Kyle McChesney

    1 year ago
    agent: prefecthq/prefect:0.14.13-python3.8
    Dockerfile for image in question
    FROM prefecthq/prefect:0.15.3
    
    RUN pip install pandas s3fs biopython
    server stuffg:
    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?
    Kevin Kho

    Kevin Kho

    1 year ago
    There was a fix in 0.14.15 I think so you might have to upgrade your agent and the version of script registration
    Kyle McChesney

    Kyle McChesney

    1 year ago
    okay i re-tried
    everything on 0.15.3 and same issue
    Kevin Kho

    Kevin Kho

    1 year ago
    Maybe you need to set the requiresCompatibilities? https://stackoverflow.com/a/55009899
    Kyle McChesney

    Kyle McChesney

    1 year ago
    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!