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

Method current_task

celery/app/base.py:1690–1692  ·  view source on GitHub ↗

Instance of task being executed, or :const:`None`.

(self)

Source from the content-addressed store, hash-verified

1688
1689 @property
1690 def current_task(self):
1691 """Instance of task being executed, or :const:`None`."""
1692 return _task_stack.top
1693
1694 @property
1695 def current_worker_task(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected