Hi All, I have a flow that I wrote, and I started ...
# prefect-community
m
Hi All, I have a flow that I wrote, and I started a prefect service using:
Copy code
prefect backend server &
prefect agent start &
prefect server start &
Then I registered my service using:
Copy code
flow.register(project_name="ML")
Finally went to the Web UI and click on quick run, but then it’s sort of been stuck there for a while now Is there any way to debug why this is happening?
n
Hi @Max Lei - can you confirm that the labels with which your flow was created are covered by the labels on your agent? You can view the former on your flow's details tile and the latter on the agent management screen:
m
@nicholas I was looking for the agents tab and I did not see anything. Then I found out that I wasn’t running an agent somehow. Thanks
n
Ah you know what, I apologize - agents aren't yet persisted in Prefect Server because they don't yet have a proper model in the database.... glad you got it fixed!
m
@nicholas Does this mean that we need to run the agents after the model have been registered?
n
Not at all @Max Lei - only that the labels with which you start your agent need to include those with which you register your flow. For example if your flow is registered with the labels
prod
,
etl
, and
github-storage
, your agent must at least contain all of the above, but it can have more.
m
@nicholas Got it, thanks you very much
n
Happy to help!