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

Method _patch_thread_primitives

celery/worker/components.py:89–98  ·  view source on GitHub ↗
(self, w)

Source from the content-addressed store, hash-verified

87 w.hub.close()
88
89 def _patch_thread_primitives(self, w):
90 # make clock use dummy lock
91 w.app.clock.mutex = DummyLock()
92 # multiprocessing's ApplyResult uses this lock.
93 try:
94 from billiard import pool
95 except ImportError:
96 pass
97 else:
98 pool.Lock = DummyLock
99
100
101class Pool(bootsteps.StartStopStep):

Callers 1

createMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected