Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-intel committed Dec 10, 2024
1 parent f57bda3 commit 746422b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions metaflow/runner/metaflow_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ async def __aenter__(self) -> "Runner":

def __get_executing_run(self, attribute_file_fd, command_obj):
content = handle_timeout(attribute_file_fd, command_obj, self.file_read_timeout)

command_obj.sync_wait()

content = json.loads(content)
pathspec = "%s/%s" % (content.get("flow_name"), content.get("run_id"))

Expand Down Expand Up @@ -326,7 +329,6 @@ def run(self, **kwargs) -> ExecutingRun:
show_output=self.show_output,
)
command_obj = self.spm.get(pid)
command_obj.sync_wait()

return self.__get_executing_run(attribute_file_fd, command_obj)

Expand Down Expand Up @@ -358,7 +360,6 @@ def resume(self, **kwargs):
show_output=self.show_output,
)
command_obj = self.spm.get(pid)
command_obj.sync_wait()

return self.__get_executing_run(attribute_file_fd, command_obj)

Expand Down

0 comments on commit 746422b

Please sign in to comment.