Skip to content

Commit

Permalink
Join Queues
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Nov 7, 2023
1 parent 988f546 commit 5f88f50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pympipool/shared/executorbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def execute_parallel_tasks_loop(interface, future_queue):
if "shutdown" in task_dict.keys() and task_dict["shutdown"]:
interface.shutdown(wait=task_dict["wait"])
future_queue.task_done()
future_queue.join()
break
elif "fn" in task_dict.keys() and "future" in task_dict.keys():
f = task_dict.pop("future")
Expand Down Expand Up @@ -175,6 +176,7 @@ def executor_broker(
future_queue.task_done()
else:
future_queue.task_done()
future_queue.join()
break


Expand Down

0 comments on commit 5f88f50

Please sign in to comment.