Skip to content

Commit

Permalink
tester: log qsize() in the worker
Browse files Browse the repository at this point in the history
Log workers backlog size for the benefit of the status page.

Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
kuba-moo committed Nov 29, 2023
1 parent 668ee60 commit 1c61f67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ def run(self) -> None:
s = self.queue.get()
if s is None:
continue

core.log(f"Tester commencing with backlog of {self.queue.qsize()}")
self.test_series(self.tree, s)
self.done_queue.put(s)

# If we're the last worker with work to do - let the poller run
core.log(f"Checking barrier {self.barrier.n_waiting}/{self.barrier.parties} ")
core.log(f"Checking barrier {self.barrier.n_waiting}/{self.barrier.parties} {self.queue.qsize()}")
if self.barrier.parties == self.barrier.n_waiting + 1:
break

Expand Down

0 comments on commit 1c61f67

Please sign in to comment.