Hey all, Is there any indication that a label app...
# prefect-community
r
Hey all, Is there any indication that a label applied when a flow is registered, does not get transfered to the instance of the flow started by a schedule. Ie, Flow_A is registered with Label "ABC" (which is clear in the GUI) but when the flow's schedule kicks off.. Label "ABC" is not on that execution so it doesnt actually execute.. it just sits in "Submitted".
1
r
In general, the Submitted state means that the agent was able to pick up the scheduled flow and submitted it for execution. For flows stuck in the Submitted state, I would recommend you check out this article! https://discourse.prefect.io/t/why-is-my-flow-stuck-in-a-submitted-state/201
r
Well, I know what the issue was.. the Label that is on the Registered flow run... was not on the execution of the scheduled flow run, so an agent didnt pick it up to run it. My question was how can the submitted execution of the flow run not pick up the labels on the registered flow run?
r
How did you set up the schedule for the flow? Are you passing it into the Flow object?
r
The schedule just executes the flow.. never had to pass a label before. The schedule is defined when the flow is registered. Just kicks off the flow at that time of day.
r
If the label and schedule are applied at registration time, the label should persist to the flow run at the scheduled time. My recommendation would be to check that the agent's labels are a superset of the labels set on the flow as described in this document: https://docs-v1.prefect.io/api/latest/cli/register.html#register Updated with this document as well: https://docs-v1.prefect.io/orchestration/flow_config/run_configs.html#labels
r
Thanks.. I will look into this!
👍 1
Looks like just re-registering the flow ended up working... at least so far it looks like it is. I dunno exactly what happened .. we changed nothing! 🙂 Thanks for the info, Rob!
👍 1
💯 1