Skip to content

Commit

Permalink
Use asyncio.run
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Jan 31, 2025
1 parent b914781 commit 0901260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plumpy/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ def execute(self) -> dict[str, Any] | None:
:return: None if not terminated, otherwise `self.outputs`
"""
if not self.has_terminated():
self.loop.run_until_complete(self.step_until_terminated())
asyncio.run(self.step_until_terminated())

return self.future().result()

Expand Down

0 comments on commit 0901260

Please sign in to comment.