Errors¶
aio-fluid defines two error hierarchies: one for general utilities and one for the task scheduler.
Utility errors¶
fluid.utils.errors.FluidError
¶
Bases: Exception
Base class for all Fluid Trading errors.
fluid.utils.errors.FluidValueError
¶
Bases: ValueError, FluidError
Quant Value Error
fluid.utils.errors.ValidationError
¶
fluid.utils.errors.WorkerStartError
¶
Bases: FluidError
Worker start error
fluid.utils.errors.FlamegraphError
¶
Bases: FluidError
Raised when flamegraph generation fails.
Task scheduler errors¶
fluid.scheduler.errors.TaskError
¶
Bases: RuntimeError
Base class for all task scheduler errors.
fluid.scheduler.errors.UnknownTaskError
¶
Bases: TaskError
Raised when a task name is not registered in the task registry.
fluid.scheduler.errors.DisabledTaskError
¶
Bases: TaskError
Raised when attempting to queue or run a disabled task.
fluid.scheduler.errors.TaskParamsError
¶
Bases: TaskError
Raised when task run parameters fail validation when consumed from the broker.
It carries the task run, created with unvalidated params, so the consumer can mark it as failed and log the error.
Source code in fluid/scheduler/errors.py
fluid.scheduler.errors.TaskRunError
¶
Bases: TaskError
Raised when a task run fails during execution.
This is an internal error used to signal a failure during task execution, and is not intended to be raised by user code.
fluid.scheduler.errors.TaskAbortedError
¶
Bases: TaskError
Raised when a task run is aborted before completion.
If a task needs to abort itself it can raise this error, which will be caught by the consumer and treated as a soft-failure and therefore logged as info and not trigger any retry policy if configured.