Peter Nagy02/25/2023, 6:26 PM
EC2s in an an ASG with an amazon ecs-optimized linux gpu AMI. Here is how I am calling ECSTask:
If anyone could help me figure out what I could try to get this working, I would be really grateful.
ECSTask( command=["echo", "hello world"], image="<http://xxxxxxxxxxxx.dkr.ecr.eu-central-1.amazonaws.com/my_repo:my_image|xxxxxxxxxxxx.dkr.ecr.eu-central-1.amazonaws.com/my_repo:my_image>", launch_type="EC2", cluster="my-cluster", stream_output=True, execution_role_arn="arn:aws:iam::xxxxxxxxxxxx:role/prefect-ecs-task-role", ).run()
Christopher Boyd02/27/2023, 8:08 PM
Peter Nagy02/28/2023, 6:46 AM
, so I am guessing that it is an ECS failure reported by Prefect. The task goes to a
prefect_aws.ecs.EssentialContainerExited: Essential container in task exited
status, but then abruptly stops. I also attached a screenshot of the full traceback. The issue is also weird, as on Fargate the same Docker image runs without problems, and one time on EC2 it also ran with the same config - since then I did not get it to work though. Thanks for your help!
Christopher Boyd02/28/2023, 1:29 PM
Peter Nagy02/28/2023, 4:41 PM
Christopher Boyd02/28/2023, 5:34 PM
to send them to the prefect logger by default. Beyond that, I don’t see any logs or indication to point to a failure
Peter Nagy03/01/2023, 5:56 AM
essential container in task exited
if seemingly everything is running fine?