TaskContext
No overview available.
Attributes
| Attribute | Type | Description |
|---|---|---|
| task_result | [TaskResult](taskresult.md?sid=django_tasks_base_taskresult) | The TaskResult object containing the execution state and outcome of the current task. |
Constructor
Signature
def TaskContext() - > null
Methods
attempt()
@classmethod
def attempt() - > integer
Returns the number of times the task has been executed.
Returns
| Type | Description |
|---|---|
integer | The current attempt count for the task execution |