https://prefect.io logo
Title
a

Abhishek Mitra

06/28/2022, 1:10 PM
I am not being able to run a Flow. The problem is in the execution layer of my project. I'm using an ECS Fargate agent to run my tasks. I'm following this method to define task containers. I'm also using the logging options mentioned here but the task only gets submitted by the agent. Nothing happens after that and after a while it gets restarted by Lazarus. Could anyone suggest a way to narrow down the problem or a better practice to follow for configuring flows?
k

Kevin Kho

06/28/2022, 3:09 PM
If you added the logs, you can check them in CloudWatch. This can be a couple things: 1. Roles don’t have permissions to get the containers 2. Incompatible container (container built with M1) 3. Is your container named “flow”?
a

Abhishek Mitra

06/28/2022, 3:11 PM
How to change container specifications?
k

Kevin Kho

06/28/2022, 3:12 PM
What specifications? Using the task definition that you linked?
a

Abhishek Mitra

06/28/2022, 3:12 PM
Yes
cpu and memory?
k

Kevin Kho

06/28/2022, 3:14 PM
You can add that in the task definition
a

Abhishek Mitra

06/28/2022, 3:14 PM
I also added the logs settings in containerDefinition but the logs are not getting created
k

Kevin Kho

06/28/2022, 3:14 PM
You need to make the log group also for cloud watch
a

Abhishek Mitra

06/28/2022, 3:15 PM
Oh yes. My bad let me try once
Its actually a FlowStorageError. Prefect is not installed with mysql extra.
Is there a way to pre install prefect with aws and mysql extra as part of containerDefinition?
k

Kevin Kho

06/28/2022, 4:04 PM
This only works for the base prefect image
a

Abhishek Mitra

06/28/2022, 4:17 PM
Okay issue solved using a custom image
Thanks again! @Kevin Kho