Ritabrata Moitra
05/09/2023, 10:45 AMpending
state while trying to run through an ECSTask block. I was referring to https://prefecthq.github.io/prefect-aws/#save-an-infrastructure-and-storage-block.
Probing a bit further, I checked the containerDefinition
for the ECS task that was created by prefect deployment apply
and the command seems to be ["python","-m","prefect.engine"]
To me, it seems that this is the malformed command, as what I see from the logs is that the Fargate instance is stuck on this command and starts some sort of a server, instead of running the desired flow. Could you folks kindly advise on this?ecs_task = ECSTask(
image="prefecthq/prefect:2-python3.10",
aws_credentials=aws_credentials,
vpc_id=os.environ["VPC_ID"],
cluster="prefect-agent-cluster-2",
stream_output=True,
configure_cloudwatch_logs=True,
execution_role_arn="arn:aws:iam::xxxx:role/test-iam-role-prefect",
task_role_arn="arn:aws:iam::xxxx:role/test-iam-role-prefect"