Skip to content

Commit 04af7e4

Browse files
updates (#3276)
* updates * makes sense now Signed-off-by: Yee Hing Tong <wild-endeavor@users.noreply.github.com> --------- Signed-off-by: Yee Hing Tong <wild-endeavor@users.noreply.github.com>
1 parent c4caacc commit 04af7e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

flytekit/remote/remote.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ def _get_git_repo_url(source_path: str):
212212
return ""
213213

214214

215+
@functools.lru_cache
215216
def _get_pickled_target_dict(
216217
root_entity: typing.Union[WorkflowBase, PythonTask],
217218
) -> typing.Tuple[bytes, PickledEntity]:
@@ -1078,7 +1079,6 @@ def register_task(
10781079
*FlyteRemote._get_pod_template_hash(entity),
10791080
)
10801081

1081-
if self.interactive_mode_enabled:
10821082
serialization_settings.fast_serialization_settings = self._pickle_and_upload_entity(
10831083
entity,
10841084
pickled_target_dict,
@@ -1130,7 +1130,6 @@ def register_workflow(
11301130
*FlyteRemote._get_pod_template_hash(entity),
11311131
)
11321132

1133-
if self.interactive_mode_enabled:
11341133
serialization_settings.fast_serialization_settings = self._pickle_and_upload_entity(
11351134
entity,
11361135
pickled_target_dict,

0 commit comments

Comments
 (0)