pipelines.status module#
- class pipelines.status.PipelineTaskStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#
Bases:
Enum
The status of the task and pipeline statuses.
- CANCELLED = 'CANCELLED'#
- CONFIG_ERROR = 'CONFIG_ERROR'#
- DONE = 'DONE'#
- PENDING = 'PENDING'#
- RUNNING = 'RUNNING'#
- RUNTIME_ERROR = 'RUNTIME_ERROR'#
- VALIDATION_ERROR = 'VALIDATION_ERROR'#
- classmethod choices()#
Converts the enum into choices to be used in django models
- classmethod failed_statuses()#
Gets a list of statuses that represent a pipeline or tasks failing.
- classmethod final_statuses()#
Gets a list of statuses that represent a pipeline or tasks finishing (whether successful or unsuccessful).
- has_advanced(new_state: PipelineTaskStatus)#
Checks if the provided status is later in the pipeline lifecycle.
- Parameters:
new_state – The state to check relative to
self
- classmethod non_final_statuses()#
Gets a list of statuses that represent a pipeline or tasks before finishing.
- classmethod success_statuses()#
Gets a list of statuses that represent a pipeline or tasks succeeding.