Skip to content

Commit

Permalink
worker: fix a misleading debug messsage
Browse files Browse the repository at this point in the history
... and name of a local variable.  The tasks returned
by `worker.get_tasks_to_assign()` are not yet assigned.
  • Loading branch information
kdudka committed Jan 10, 2024
1 parent 3e393cb commit 6532446
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kobo/worker/taskmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,11 @@ def get_next_task(self):

return

assigned_task_list = self.hub.worker.get_tasks_to_assign()
self.log_debug("Current assigned tasks: %r" % [ti["id"] for ti in assigned_task_list])
tasks_to_assign = self.hub.worker.get_tasks_to_assign()
self.log_debug("Current assignable tasks: %r" % [ti["id"] for ti in tasks_to_assign])

# process assigned tasks first
for task_info in assigned_task_list:
for task_info in tasks_to_assign:
self.take_task(task_info)

def take_task(self, task_info):
Expand Down

0 comments on commit 6532446

Please sign in to comment.