Skip to content

Commit

Permalink
Fix issue with setting metadata when using the runner (#1875)
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-intel committed Jun 4, 2024
1 parent 9d3516c commit 97d3f58
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions metaflow/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from . import decorators, lint, metaflow_version, namespace, parameters, plugins
from .cli_args import cli_args
from .client.core import get_metadata
from .datastore import FlowDataStore, TaskDataStore, TaskDataStoreSet
from .exception import CommandException, MetaflowException
from .graph import FlowGraph
Expand Down Expand Up @@ -700,7 +699,12 @@ def resume(
runtime.persist_constants()
write_file(
runner_attribute_file,
"%s:%s" % (get_metadata(), "/".join((obj.flow.name, runtime.run_id))),
"%s@%s:%s"
% (
obj.metadata.__class__.TYPE,
obj.metadata.__class__.INFO,
"/".join((obj.flow.name, runtime.run_id)),
),
)
if clone_only:
runtime.clone_original_run()
Expand Down Expand Up @@ -763,7 +767,12 @@ def run(
runtime.persist_constants()
write_file(
runner_attribute_file,
"%s:%s" % (get_metadata(), "/".join((obj.flow.name, runtime.run_id))),
"%s@%s:%s"
% (
obj.metadata.__class__.TYPE,
obj.metadata.__class__.INFO,
"/".join((obj.flow.name, runtime.run_id)),
),
)
runtime.execute()

Expand Down

0 comments on commit 97d3f58

Please sign in to comment.