https://prefect.io logo
Title
m

Max Lei

08/19/2020, 10:57 PM
Hi All, I have a flow that I wrote, and I started a prefect service using:
prefect backend server &
prefect agent start &
prefect server start &
Then I registered my service using:
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

nicholas

08/19/2020, 11:26 PM
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

Max Lei

08/19/2020, 11:49 PM
@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

nicholas

08/19/2020, 11:52 PM
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

Max Lei

08/19/2020, 11:59 PM
@nicholas Does this mean that we need to run the agents after the model have been registered?
n

nicholas

08/20/2020, 12:01 AM
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

Max Lei

08/20/2020, 12:01 AM
@nicholas Got it, thanks you very much
n

nicholas

08/20/2020, 12:01 AM
Happy to help!