Join Slack
Powered by
is there a way to add labels to a task dynamically...
# flyte-support
l
late-traffic-56555
01/24/2024, 6:01 PM
is there a way to add labels to a task dynamically? i.e. have a @dynamic task that calls another task and can modify the task's task_config?
g
glamorous-carpet-83516
01/24/2024, 6:54 PM
yes, you can use task,with_overrides(task_config=..)
l
late-traffic-56555
01/24/2024, 6:55 PM
yes but what is the field in task_config for labels
g
glamorous-carpet-83516
01/24/2024, 7:21 PM
ah, i see. you want to override podtemplate, in order to update the labels, right
l
late-traffic-56555
01/26/2024, 5:06 PM
yeah
late-traffic-56555
01/26/2024, 5:06 PM
thanks, this worked
4
Views
Open in Slack
Previous
Next