Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions flytekit/tools/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,12 +455,9 @@ def get_serializable_node(
# if entity._aliases:
# node_model._output_aliases = entity._aliases
elif isinstance(entity.flyte_entity, PythonTask):
# handle pod template overrides
override_pod_spec = {}
if entity._pod_template is not None and settings.should_fast_serialize():
# Only call set_command_fn for PythonAutoContainerTask and its subclasses
# ContainerTask doesn't have this method
if not isinstance(entity.flyte_entity, ContainerTask):
if entity._pod_template is not None:
if settings.should_fast_serialize() and not isinstance(entity.flyte_entity, ContainerTask):
entity.flyte_entity.set_command_fn(_fast_serialize_command_fn(settings, entity.flyte_entity))
override_pod_spec = _serialize_pod_spec(
entity._pod_template, entity.flyte_entity._get_container(settings), settings
Expand Down