MCPcopy
hub / github.com/celery/celery / thread_worker

Method thread_worker

t/smoke/tests/test_thread_safe.py:61–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 signal_was_called(True)
60
61 def thread_worker():
62 set_default_app(celery_setup.app)
63 identity.si("Published from thread").apply_async(
64 queue=celery_setup.worker.worker_queue
65 )
66
67 executor = ThreadPoolExecutor(threads_count)
68

Callers

nothing calls this directly

Calls 3

set_default_appFunction · 0.85
siMethod · 0.80
apply_asyncMethod · 0.45

Tested by

no test coverage detected