Skip to content

Commit

Permalink
Kill BackgroundCluster if it does not shut down
Browse files Browse the repository at this point in the history
  • Loading branch information
dansondergaard committed Jun 27, 2024
1 parent c6b4c9d commit d9c3936
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gwf/backends/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@ def start(cls, working_dir, max_cores, host, port, **kwargs):
def shutdown(self):
with Client.connect("localhost", 12345) as c:
c.shutdown()
self.process.join()
self.process.join(timeout=1)
self.process.kill()

def __enter__(self):
return self
Expand Down

0 comments on commit d9c3936

Please sign in to comment.