MCPcopy
hub / github.com/celery/celery / ensure_started

Method ensure_started

celery/utils/timer2.py:110–114  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

108 self.running = False
109
110 def ensure_started(self) -> None:
111 if not self.running and not self.is_alive():
112 if self.on_start:
113 self.on_start(self)
114 self.start()
115
116 def _do_enter(self, meth: str, *args: Any, **kwargs: Any) -> Entry:
117 self.ensure_started()

Callers 2

_do_enterMethod · 0.95

Calls 3

startMethod · 0.95
is_aliveMethod · 0.80
on_startMethod · 0.45

Tested by 1