MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / _update_progress

Method _update_progress

aura/worker_executor.py:73–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 time.sleep(0.05)
72
73 def _update_progress(self):
74 if config.PROGRESSBAR_DISABLED:
75 return
76
77 if self.q is not None:
78 queue_items = sum(1 for x in list(self.q) if x is not Wait)
79
80 total = self.total + queue_items
81 else:
82 total = self.total
83
84 self.pg.total = total
85 self.pg.n = self.completed
86 self.pg.update(0)
87
88
89class AsyncQueue:

Callers 3

__iter__Method · 0.95
completed_cbMethod · 0.95
submitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected