MCPcopy
hub / github.com/celery/celery / clear

Method clear

celery/concurrency/gevent.py:72–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

70 self._queue.discard(g)
71
72 def clear(self):
73 queue = self._queue
74 while queue:
75 try:
76 queue.pop().kill()
77 except KeyError:
78 pass
79
80 @property
81 def queue(self):

Callers 1

flushMethod · 0.45

Calls 2

killMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected