https://prefect.io logo
Title
d

Diego Oliveira

01/25/2022, 6:20 PM
Hello, I would like to know if it is possible to assign an agent label when I create a schedule using the UI. When I create the schedule, the runs don't run because it doesn't have an agent label assigned
k

Kevin Kho

01/25/2022, 6:37 PM
Hi @Diego Oliveira, I am a bit confused why the agent label would be related to the schedule. The agent label needs to go on agent creation. The Flow label needs to go on the flow side (storage, not schedule). Does that help?
d

Diego Oliveira

01/25/2022, 7:08 PM
Its because I have multiple agents and I want to create a schedule associate with a agent, it's possible?
k

Kevin Kho

01/25/2022, 7:11 PM
It’s not but I think in Prefect 2.0 it might be possible because everything is tagged including Schedules
g

Gabriel Milan

01/26/2022, 9:48 PM
But isn't it possible to set labels on schedules through the Python API? I can even see an open issue on that https://github.com/PrefectHQ/ui/issues/962
k

Kevin Kho

01/26/2022, 10:28 PM
Oh you are right @Gabriel Milan. My thinking was wrong here. Thanks for correcting me! But yes you still can’t set it in the UI as seen in the issue
g

Gabriel Milan

01/27/2022, 10:29 AM
Do you think this will be available at Orion?
k

Kevin Kho

01/27/2022, 4:35 PM
I can’t say for sure but you can comment and ask Jenny in that issue
2