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

Function active_thread_count

celery/apps/worker.py:78–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76
77
78def active_thread_count():
79 from threading import enumerate
80 return sum(1 for t in enumerate()
81 if not t.name.startswith('Dummy-'))
82
83
84def safe_say(msg, f=sys.__stderr__):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected