Skip to content

Commit 56aa223

Browse files
committed
minor fix
1 parent 026f97a commit 56aa223

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metaflow/runner/metaflow_runner.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def __enter__(self) -> "Runner":
247247
async def __aenter__(self) -> "Runner":
248248
return self
249249

250-
def __get_executing_run(self, tfp_metadata_pathspec, command_obj):
250+
def __get_executing_run(self, tfp_runner_attribute, command_obj):
251251
# When two 'Runner' executions are done sequentially i.e. one after the other
252252
# the 2nd run kinda uses the 1st run's previously set metadata and
253253
# environment variables.
@@ -259,7 +259,7 @@ def __get_executing_run(self, tfp_metadata_pathspec, command_obj):
259259
clear_and_set_os_environ(self.old_env)
260260

261261
# Set the correct metadata from the runner_attribute file corresponding to this run.
262-
content = read_from_file_when_ready(tfp_metadata_pathspec.name, timeout=10)
262+
content = read_from_file_when_ready(tfp_runner_attribute.name, timeout=10)
263263
metadata_for_flow, pathspec = content.split(":", maxsplit=1)
264264
metadata(metadata_for_flow)
265265

0 commit comments

Comments
 (0)