This document describes the current stable version of Celery (3.1). For development docs, go here.
celery.utils.threads¶
celery.utils.threads¶
Threading utilities.
-
class
celery.utils.threads.
bgThread
(name=None, **kwargs)[source]¶ -
body
()¶
-
on_crash
(msg, *fmt, **kwargs)¶
-
run
()¶
-
stop
()¶ Graceful shutdown.
-
-
celery.utils.threads.
LocalStack
¶ alias of
_LocalStack
-
class
celery.utils.threads.
LocalManager
(locals=None, ident_func=None)[source]¶ Local objects cannot manage themselves. For that you need a local manager. You can pass a local manager multiple locals or add them later by appending them to manager.locals. Everytime the manager cleans up it, will clean up all the data left in the locals for this context.
The ident_func parameter can be added to override the default ident function for the wrapped locals.
-
celery.utils.threads.
get_ident
()¶