Skip to content

Tasks Service Errors

consortium.server.exceptions.service_exceptions.tasks_service_exceptions

TasksServiceError(message='', detail=None)

Bases: BaseServiceError

Base exception for all errors that occur within the tasks service.

code = 'TASKS_SERVICE_ERROR' class-attribute instance-attribute

TaskAgentMismatchError(task_agent_id, agent_id)

Bases: TasksServiceError

Raised when a task is registered against an agent that does not own it.

code = 'TASK_AGENT_MISMATCH_ERROR' class-attribute instance-attribute

TaskNotFoundError(task_id)

Bases: TasksServiceError

Raised when a task is not found.

code = 'TASK_NOT_FOUND_ERROR' class-attribute instance-attribute

TaskNotDeletableError(task_str, state)

Bases: TasksServiceError

Raised when task deletion targets a task that is still running.

code = 'TASK_NOT_DELETABLE_ERROR' class-attribute instance-attribute