orangeqs.juice.task._schemas#
Schemas for task results and errors.
Module Contents#
Classes#
Result information of a successfully completed task. |
|
Result information of a task that raised an error. |
Data#
Union of all possible task results.
Either |
API#
- class orangeqs.juice.task._schemas.TaskResultOk(/, **data: Any)#
Bases:
pydantic.BaseModelResult information of a successfully completed task.
- class orangeqs.juice.task._schemas.TaskResultError(/, **data: Any)#
Bases:
pydantic.BaseModelResult information of a task that raised an error.
- orangeqs.juice.task._schemas.TaskResult#
None
Union of all possible task results. Either
TaskResultOkorTaskResultError.
- exception orangeqs.juice.task._schemas.TaskExecutionError(error: orangeqs.juice.task._schemas.TaskResultError)#
Bases:
ExceptionTask execution error, raised if a task fails.
Raised by
request()andexecute()when a task fails withcheck=True- error: orangeqs.juice.task._schemas.TaskResultError#
None
The wrapped error details.