Is it better to create the (ECS) Task Definition a...
# prefect-server
j
Is it better to create the (ECS) Task Definition ahead of time? When I created 25 flow runs that run on ECS / Fargate, got this error:
Failed: "An error occurred (ThrottlingException) when calling the DeregisterTaskDefinition operation (reached max retries: 2): Rate exceeded"
This is the run config:
Copy code
RUN_CONFIG = ECSRun(
    run_task_kwargs={"cluster": "[redacted]"},
    execution_role_arn="arn:aws:iam::[redacted]",
    task_role_arn="arn:aws:iam::[redacted]",
    labels=["an-agent"],
)
k
Hey @jack, even if you create it ahead of time, Prefect will register and deregister to apply the RunConfig and supporting changing the RunConfig from run to run. There was a fix for this in 0.15.7 here