Skip to content

Commit

Permalink
Merge pull request #177 from pyiron/hotfix_set_running_false
Browse files Browse the repository at this point in the history
🐛 stop running
  • Loading branch information
liamhuber authored Jan 30, 2024
2 parents 1ce79ce + 1f3893d commit a3f4a75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyiron_workflow/composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def _parse_remotely_executed_self(self, other_self):
# Un-parent existing nodes before ditching them
for node in self:
node._parent = None
other_self.running = False # It's done now
self.__setstate__(other_self.__getstate__())

def disconnect_run(self) -> list[tuple[Channel, Channel]]:
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/test_macro.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ def test_with_executor(self):

returned_nodes = result.result(timeout=120) # Wait for the process to finish
sleep(1)
self.assertFalse(
macro.running,
msg="Macro should be done running"
)
self.assertIsNot(
original_one,
returned_nodes.one,
Expand Down

0 comments on commit a3f4a75

Please sign in to comment.