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

Xinzhou Liu

05/02/2023, 7:02 PM
Is there a way to override the task pod labels from task level (like, using
with_overrides()
), instead of the execution level? I’d like to attach different labels to different tasks in the same workflow for cost tracking purpose
y

Yee

05/02/2023, 11:09 PM
cc @Byron Hsu
there’s a broader config override story being developed as well
b

Byron Hsu

05/02/2023, 11:10 PM
you can pass labels in pod_template like this example
y

Yee

05/02/2023, 11:30 PM
yeah but this is at the task level… @Xinzhou Liu wants to do it in the workflow body
b

Byron Hsu

05/02/2023, 11:31 PM
or you want to attach different labels to the same task?
x

Xinzhou Liu

05/02/2023, 11:31 PM
I tried this method, but it seems to require configure a new container from scratch. In my case, the parent task is not aware of the container image
b

Byron Hsu

05/02/2023, 11:32 PM
could you elaborate the issue you hit
x

Xinzhou Liu

05/02/2023, 11:32 PM
Sorry for the confusion, I’d like to attach different labels to the same executed task, ideally
b

Byron Hsu

05/02/2023, 11:34 PM
sorry its not possible today. we are currently working on the generic config override things
x

Xinzhou Liu

05/02/2023, 11:35 PM
got it, no worries, thanks for the help