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

Method ensure_started

celery/contrib/testing/worker.py:88–96  ·  view source on GitHub ↗

Wait for worker to be fully up and running. Warning: Worker must be started within a thread for this to work, or it will block forever.

(self)

Source from the content-addressed store, hash-verified

86 sender=self.app, worker=self, consumer=consumer)
87
88 def ensure_started(self):
89 # type: () -> None
90 """Wait for worker to be fully up and running.
91
92 Warning:
93 Worker must be started within a thread for this to work,
94 or it will block forever.
95 """
96 self._on_started.wait()
97
98
99@contextmanager

Callers 2

embed_workerFunction · 0.95
_start_worker_threadFunction · 0.45

Calls 1

waitMethod · 0.45

Tested by 1

embed_workerFunction · 0.76