Skip to main content

TaskContext

No overview available.

Attributes

AttributeTypeDescription
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

TypeDescription
integerThe current attempt count for the task execution