https://prefect.io logo
Title
a

Abhishek Mitra

04/27/2023, 7:16 AM
Hi folks, I had an agent running on ECS Fargate. It was running fine till yesterday. The logs also seem fine. But somehow the agent status is
Unhealthy
for that work-queue & pool and I don't know why. And my flows are stuck in a
Late
status. Can anybody suggest a way to fix this? logs are fine:
___ ___ ___ ___ ___ ___ _____     _   ___ ___ _  _ _____
 | _ \ _ \ __| __| __/ __|_   _|   /_\ / __| __| \| |_   _|
 |  _/   / _|| _|| _| (__  | |    / _ \ (_ | _|| .` | | |
 |_| |_|_\___|_| |___\___| |_|   /_/ \_\___|___|_|\_| |_|
Agent started! Looking for work from work pool 'dev-work-pool'...
Okay this is solved. The status changed to
Healthy
now.
c

Caleb Ejakait

04/27/2023, 8:58 AM
Hey Abhisheck. I am facing the same issue. What did you do to solve this issue?
a

Abhishek Mitra

04/27/2023, 2:50 PM
If the agent logs are good and look like above, you should see a
Healthy
status by now. (Assuming you're trying to deploy an agent in ECS Fargate) You can try to : • mention work queue and work pool in the command while deploying agent
prefect agent start --pool work-pool --work-queue work-queue
• check if correct
PREFECT_API_URL
value is passed to task_definition • set variable
PREFECT_API_ENABLE_HTTP2=False