I am not being able to run a Flow. The problem is ...
# prefect-community
a
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
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
How to change container specifications?
k
What specifications? Using the task definition that you linked?
a
Yes
cpu and memory?
k
You can add that in the task definition
a
I also added the logs settings in containerDefinition but the logs are not getting created
k
You need to make the log group also for cloud watch
a
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
This only works for the base prefect image
a
Okay issue solved using a custom image
Thanks again! @Kevin Kho