Hi there! Sorry if it's a dumb question but I can'...
# ask-community
n
Hi there! Sorry if it's a dumb question but I can't figure out what's wrong, I'm new to Prefect. My setup: • Prefect Cloud to orchestrate • a docker container with prefect installed In the container I registered a flow with
prefect register --project nike_dev --path flows/test.py
, it's sucessfuly registered, I can see it in my dashboard. I also have an agent running in the container
Copy code
[2021-06-24 15:27:12,585] INFO - agent | Starting LocalAgent with labels ['93d6256207bd']
[2021-06-24 15:27:12,586] INFO - agent | Agent documentation can be found at <https://docs.prefect.io/orchestration/>
[2021-06-24 15:27:12,586] INFO - agent | Agent connecting to the Prefect API at <https://api.prefect.io>
[2021-06-24 15:27:13,124] INFO - agent | Waiting for flow runs...
In the dashboard I manually scheduled the flow to run immediately but the agent doesn't pick it up https://d.pr/i/j55IrO. How can I debug it further? What can be wrong?
It seems that a flow has to have a label that at least one agent reads from, i.e. a flow without labels can't be executed at all. Weird, that's not how I understood the docs.
k
Hey @Nike Gurin-Petrovych, None and None labels match. Prefect adds a default label for the local agent though. You can remove this with
prefect agent local start --no-hostname-label
n
Dashboard doesn't show
None
as a label, only a random string generated for each agent start.