https://flyte.org logo
#ask-the-community
Title
# ask-the-community
g

Geoff Salmon

02/07/2023, 5:29 PM
I can set annotations when I execute a workflow in the flyte UI, but I don't see how to do it via flytectl create execution. It looks like the command doesn't accept annotations in its config struct. Is that correct, or am I missing something?
I may be misunderstanding the purpose of
flytectl create execution
. Is that command how you execute a launchplan? The docs for it don't mention launchplans.
s

Samhita Alla

02/28/2023, 9:27 AM
Sorry for not getting back to you sooner. @Prafulla Mahindrakar, can we add annotations to execution spec yaml file? You can also update the workflow execution config. See https://docs.flyte.org/projects/flytectl/en/latest/gen/flytectl_update_workflow-execution-config.html & https://docs.flyte.org/projects/flytectl/en/latest/gen/flytectl_get_workflow-execution-config.html
p

Prafulla Mahindrakar

02/28/2023, 5:41 PM
Right currently we dont support this through flytectl https://github.com/flyteorg/flytectl/blob/master/cmd/create/execution_util.go#L157-L173 Though the spec does accept it https://github.com/flyteorg/flyteidl/blob/master/protos/flyteidl/admin/execution.proto#L276-L279 Should be small change . Would be great if you can help with a contribution
But what Samhita mentioned should also work since you can set this at workflow execution config level so that all executions for a given workflow use those labels/annotations. Doing it at execution spec level overrides whats there at the execution config level.
72 Views