This document describes the current stable version of Celery (5.2). For development docs, go here.
This is an internal module containing thread state
This module shouldn’t be used directly.
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.
Currently executing task.
Currently executing task, that was applied by the worker.
This is used to differentiate between the actual task executed by the worker and any task that was called within a task (using
Set default app.