Skip to content

Commit

Permalink
Fix JobCleaner close, join only when started
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz authored Dec 16, 2024
1 parent 0f7aeab commit ffd0b5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sisyphus/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def f(job):

def close(self):
self.stopped.set()
self.join()
if self.is_alive():
self.join()
self.thread_pool.close()


Expand Down

0 comments on commit ffd0b5e

Please sign in to comment.