<@U06RKAMK0UC> I think support was added for speci...
# ask-ai
g
@ancient-wolf-19325 I think support was added for specifying labels in the task decorator in v1.16.2. Can we add labels and annotations in
with_overrides
as well now?
a
As of Flyte v1.16.0-b0 and the merged PR #6421, you can specify labels and annotations directly in the
@task
decorator, and these will be applied to pods and CRD objects. However, support for setting labels and annotations via
with_overrides
at task invocation time is not yet available in any released version. There is an open PR (#6171) and a related PR (#6145) proposing this feature, but as of now, it has not been merged or released. Therefore, you cannot currently add labels and annotations using `with_overrides`; you must use the task decorator for this purpose. Would you like more detail on the current status or a code example for the decorator approach? Sources: - Support overriding task annotations and labels via with_overrides #6171 - Add labels and annotations to with_overrides #6145 - #6421 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
g
@ancient-wolf-19325 that PR was opened in Jan, but the PR for even specifying labels in the task decorator was added in April. Does that mean overriding labels is likely not in progress?
a
Correct. The ability to specify labels and annotations in the
@task
decorator was added in April 2025 via PR #6421, and this is now available in the latest release. The PRs for supporting labels/annotations in
with_overrides
(#6145, #6171) were opened earlier but have not been merged or updated since, indicating that runtime override support for labels/annotations is not actively in progress. Would you like more detail on the timeline or alternatives for dynamic labeling? Sources: - Add labels and annotations to with_overrides #6145 - PR #6421 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.