Skip to content

Commit

Permalink
fix OSS resume
Browse files Browse the repository at this point in the history
  • Loading branch information
darinyu committed Mar 12, 2024
1 parent c97026c commit 4f9e3c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion metaflow/clone_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def clone_task_helper(
clone_run_id,
run_id,
step_name,
clone_task_id,
task_id,
flow_datastore,
metadata_service,
Expand All @@ -22,7 +23,11 @@ def clone_task_helper(
)
output.init_task()

origin_run_id, origin_step_name, origin_task_id = clone_run_id, step_name, task_id
origin_run_id, origin_step_name, origin_task_id = (
clone_run_id,
step_name,
clone_task_id,
)
# 2. initialize origin datastore
origin = None
if origin_ds_set:
Expand Down
1 change: 1 addition & 0 deletions metaflow/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def clone_task(self, step_name, task_id):
self._clone_run_id,
self._run_id,
step_name,
task_id, # origin_task_id
task_id,
self._flow_datastore,
self._metadata,
Expand Down
3 changes: 2 additions & 1 deletion metaflow/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,15 @@ def clone_only(
raise MetaflowInternalError(
"task.clone_only needs a valid clone_origin_task value."
)
origin_run_id, _, _ = clone_origin_task.split("/")
origin_run_id, _, origin_task_id = clone_origin_task.split("/")

# If we actually have to do the clone ourselves, proceed...
clone_task_helper(
self.flow.name,
origin_run_id,
run_id,
step_name,
origin_task_id,
task_id,
self.flow_datastore,
self.metadata,
Expand Down

0 comments on commit 4f9e3c9

Please sign in to comment.