MCPcopy
hub / github.com/celery/celery / _loop_cycle

Function _loop_cycle

celery/worker/loops.py:147–162  ·  view source on GitHub ↗

Perform one iteration of the blocking event loop.

()

Source from the content-addressed store, hash-verified

145 obj.on_ready()
146
147 def _loop_cycle():
148 """
149 Perform one iteration of the blocking event loop.
150 """
151 if heartbeat_error[0] is not None:
152 raise heartbeat_error[0]
153 if qos.prev != qos.value:
154 qos.update()
155 try:
156 perform_pending_operations()
157 connection.drain_events(timeout=2.0)
158 except socket.timeout:
159 pass
160 except OSError:
161 if blueprint.state == RUN:
162 raise
163
164 while blueprint.state == RUN and obj.connection:
165 try:

Callers 1

synloopFunction · 0.85

Calls 2

updateMethod · 0.45
drain_eventsMethod · 0.45

Tested by

no test coverage detected