This document describes the current stable version of Celery (5.0). For development docs, go here.
celery._state¶
Internal state.
This is an internal module containing thread state
like the current_app, and current_task.
This module shouldn’t be used directly.
-
celery._state.connect_on_app_finalize(callback)[source]¶ Connect callback to be called when any app is finalized.
-
celery._state.current_app= <Celery default>¶ Proxy to current app.
-
celery._state.current_task= None¶ Proxy to current task.