:wave: is there any way to set <workflow labels/an...
# flyte-support
g
👋 is there any way to set workflow labels/annotations for the default launch plan created during registration?
if we could set it when we define the workflow in code that would be ideal!
g
hey sorry for the delay here! so I tried that but I got this error:
Copy code
ValueError: Only named launchplans can be created that have other properties.
it seems like we're not able to add labels to the default launch plan, only explicitly named ones
creating a new launch plan with the label (that isn't the default plan) isn't ideal since users now have to explicitly switch the launch plan when launching the workflow
a
@gentle-night-59824 unfortunately that seem to be the case, after looking at the relevant code it seems like labels are only supported on the default launchplan. Not exactly sure why
t
iirc there were multiple reasons, not sure how strict they are today. one was because it was difficult to find a natural way to specify it. How would you like to specify it? (like what syntax?) Also there may have been the thought that the default launch plan should be create-able in isolation, with only the workflow definition - if the backend created a default launch plan and flytekit created one, they should be identical.
g
something like an argument in the
@workflow
would be ideal!
yeah that makes sense - for us we would love to specify it somewhere in the workflow definition itself so I'd hope the isolation point would hold there
t
mind making an issue for this?
g
will do!
t
i remember the thinking was it wasn’t pure… like the workflow decorator should only affect the workflow, not the launch plan. but I think it’s the right time to revisit that, and maybe be more flexible about it, esp since we already extract out default args to the workflow into the default launch plan as well.
g
done! 5774