datamongus
07/11/2024, 3:12 PMhttpx.ConnectError: [Errno -2] Name or service not known
I do have a basic task definition defined in AWS, which simply points to a prefect docker image. The service doesn't expose any docker ports so there are no port mappings. I am not sure why the service keeps failing.
I do believe it has something to do with prefect inside of the ecs task not being able to connect to the prefect server that is deploying the worker, but I am not sure. Any advice would be helpful.Jake Kaplan
07/11/2024, 3:29 PMPENDING
and then crashing it sounds like your theory is correct. The worker is able to pickup the flow run, deploy the flow run to ECS, but then inside the ECS task it cannot connect back to your prefect server.
The worker should be setting the env var PREFECT_API_URL
on your ECS task. Is that a public URL? If not I would look at security settings or the VPC of the server/task and to make sure that address is accessibledatamongus
07/11/2024, 4:03 PMdatamongus
07/11/2024, 4:03 PMdatamongus
07/11/2024, 4:04 PMJake Kaplan
07/11/2024, 4:04 PMJake Kaplan
07/11/2024, 4:05 PMdatamongus
07/11/2024, 4:06 PM