Skip to content

Commit

Permalink
Fix for running controller
Browse files Browse the repository at this point in the history
  • Loading branch information
timgates42 committed May 18, 2021
1 parent 3468dbb commit 6e6e163
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/meticulous/_multiworker.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ def multiworker_core(interaction, target):
controller = Controller(
handlers=handlers, input_queue=input_queue, threadpool=threadpool, target=target
)
for task in workload:
controller.add(task)
result = controller.run(interaction)
set_json_value(key, result)
with controller:
for task in workload:
controller.add(task)
result = controller.run(interaction)
set_json_value(key, result)

0 comments on commit 6e6e163

Please sign in to comment.