Skip to content

Commit

Permalink
use thread pool
Browse files Browse the repository at this point in the history
  • Loading branch information
Atticus1806 committed Nov 13, 2024
1 parent df2f6e6 commit 3e3468e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sisyphus/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,11 +548,11 @@ def maybe_clear_state(state, always_clear, action):
self.print_state_overview(verbose=True)
elif answer.lower() == "y":
self.link_outputs = True
threading.Thread(target=create_aliases, args=(self.sis_graph.jobs(),)).start()
threading.Thread(
target=self.check_output,
kwargs={"write_output": self.link_outputs, "update_all_outputs": True, "force_update": True},
).start()
self.thread_pool.apply_async(create_aliases, self.sis_graph.jobs())
self.thread_pool.apply_async(
self.check_output,
kwds={"write_output": self.link_outputs, "update_all_outputs": True, "force_update": True},
)
break
elif answer.lower() == "u":
self.link_outputs = True
Expand Down

0 comments on commit 3e3468e

Please sign in to comment.