Skip to content

[BUG] with_overrides(pod_template=...) silently ignored for map_task #7076

@zen-xu

Description

@zen-xu

Flyte & Flytekit version

flytekit: 1.16.15
Python: 3.13.7

Describe the bug

map_task(...).with_overrides(pod_template=PodTemplate(...)) silently drops the pod_template override during serialization. The override is accepted and stored on the Node object, but never serialized into the TaskNodeOverrides for array node map tasks.

This is a separate issue from #6463 / PR #3270, which fixed pod_template serialization for regular tasks (conditional should_fast_serialize() logic in get_serializable_task). The map_task serialization path has the same class of bug but in a different location.

Expected behavior

Correctly override the map_task pod template

Additional context to reproduce

No response

Screenshots

No response

Are you sure this issue hasn't been raised already?

  • Yes

Have you read the Code of Conduct?

  • Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinguntriagedThis issues has not yet been looked at by the Maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions