MCPcopy Create free account
hub / github.com/celery/celery / tick

Function tick

celery/worker/loops.py:38–44  ·  view source on GitHub ↗
(rate)

Source from the content-addressed store, hash-verified

36 return heartbeat_error
37
38 def tick(rate):
39 try:
40 connection.heartbeat_check(rate)
41 except Exception as e:
42 # heartbeat_error is passed by reference can be updated
43 # no append here list should be fixed size=1
44 heartbeat_error[0] = e
45
46 timer.call_repeatedly(heartbeat / rate, tick, (rate,))
47 return heartbeat_error

Callers

nothing calls this directly

Calls 1

heartbeat_checkMethod · 0.80

Tested by

no test coverage detected