Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keep open as reminder] fix missing tag problem in resume #1774

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 12 additions & 1 deletion metaflow/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,9 +790,20 @@ def resume(
max_log_size=max_log_size * 1024 * 1024,
resume_identifier=resume_identifier,
)
write_run_id(run_id_file, runtime.run_id)
run_id = runtime.run_id
write_run_id(run_id_file, run_id)
runtime.print_workflow_info()
runtime.persist_constants()

if origin_run_id and run_id:
# Copy run tags from the origin run to the current run
from metaflow import Run

origin_run = Run("{}/{}".format(obj.flow.name, origin_run_id))
current_run = Run("{}/{}".format(obj.flow.name, run_id))
tags = origin_run.tags
current_run.add_tags(tags)

if clone_only:
runtime.clone_original_run()
else:
Expand Down