Skip to main content

TaskResultStatus

This class defines a set of text-based choices representing the lifecycle states of a task result. It provides standardized constants for tracking whether a task is ready, running, failed, or successful.

Attributes

AttributeTypeDescription
READYstring = READYThe Task has just been enqueued, or is ready to be executed again.
RUNNINGstring = RUNNINGThe Task is currently running.
FAILEDstring = FAILEDThe Task raised an exception during execution, or was unable to start.
SUCCESSFULstring = SUCCESSFULThe Task has finished running successfully.

Methods


READY()

def READY()

The Task has just been enqueued, or is ready to be executed again.


RUNNING()

def RUNNING()

The Task is currently running.


FAILED()

def FAILED()

The Task raised an exception during execution, or was unable to start.


SUCCESSFUL()

def SUCCESSFUL()

The Task has finished running successfully.