2.8.1
flyte.errors
Exceptions raised by Union.
These errors are raised when the underlying task execution fails, either because of a user error, system error or an unknown error.
Directory
Errors
| Exception | Description |
|---|---|
ActionAbortedError |
This error is raised when an action was aborted, externally. |
ActionNotFoundError |
This error is raised when the user tries to access an action that does not exist. |
BaseRuntimeError |
Base class for all Union runtime errors. |
CodeBundleError |
This error is raised when the code bundle cannot be created, for example when no files are found to bundle. |
ConditionAlreadyExistsError |
This error is raised when the user tries to create a condition that already exists within the action. |
ConditionFailedError |
This error is raised when a condition fails during execution. |
ConditionNotFoundError |
This error is raised when the user tries to access a condition that does not exist. |
ConditionTimedoutError |
This error is raised when a condition is not signaled within its specified timeout. |
CustomError |
This error is raised when the user raises a custom error. |
DeploymentError |
This error is raised when the deployment of a task fails, or some preconditions for deployment are not met. |
GPUFaultError |
This error is raised when the backend attributed the task failure to a GPU or NVSwitch fault that the GPU health daemon observed on the node, such as an Xid 31 (a GPU memory page fault) or an Xid 79 (the GPU fell off the bus). |
GPUFaultSystemError |
This error is raised when the GPU fault the backend attributed the failure to condemned the device or the node, for example an uncorrectable ECC error or a GPU that fell off the bus. |
GPUFaultUserError |
This error is raised when the GPU fault the backend attributed the failure to was the workload’s own doing, for example an out-of-bounds access that the driver reported as an Xid 31. |
ImageBuildError |
This error is raised when the image build fails. |
ImagePullBackOffError |
This error is raised when the image cannot be pulled. |
InitializationError |
This error is raised when the Union system is tried to access without being initialized. |
InlineIOMaxBytesBreached |
This error is raised when the inline IO max bytes limit is breached. |
InvalidImageNameError |
This error is raised when the image name is invalid. |
InvalidPackageError |
Raised when an invalid system package is detected during image build. |
LogsNotYetAvailableError |
This error is raised when the logs are not yet available for a task. |
ModuleLoadError |
This error is raised when the module cannot be loaded, either because it does not exist or because of a syntax error. |
NonRecoverableError |
Raised when an error is encountered that is not recoverable. |
NotInTaskContextError |
This error is raised when the user tries to access the task context outside of a task. |
OOMError |
This error is raised when the underlying task execution fails because of an out-of-memory error. |
OnlyAsyncIOSupportedError |
This error is raised when the user tries to use sync IO in an async task. |
ParameterMaterializationError |
This error is raised when the user tries to use a Parameter in an App, that has delayed Materialization, but the materialization fails. |
PrimaryContainerNotFoundError |
This error is raised when the primary container is not found. |
RemoteTaskNotFoundError |
This error is raised when the user tries to access a task that does not exist. |
RemoteTaskUsageError |
This error is raised when the user tries to access a task that does not exist. |
ResourceExhaustedError |
|
RestrictedTypeError |
This error is raised when the user uses a restricted type, for example current a Tuple is not supported for one value. |
RetriesExhaustedError |
This error is raised when the underlying task execution fails after all retries have been exhausted. |
RuntimeDataValidationError |
This error is raised when the user tries to access a resource that does not exist or is invalid. |
RuntimeSystemError |
This error is raised when the underlying task execution fails because of a system error. |
RuntimeUnknownError |
This error is raised when the underlying task execution fails because of an unknown error. |
RuntimeUserError |
This error is raised when the underlying task execution fails because of an error in the user’s code. |
SlowDownError |
This error is raised when the user tries to access a resource that does not exist or is invalid. |
SyncTaskCallInAsyncContextError |
This error is raised when a sync task is invoked in a blocking way (task(...)) from inside an async task. |
TaskInterruptedError |
This error is raised when the underlying task execution is interrupted. |
TaskTimeoutError |
This error is raised when the underlying task execution runs for longer than the specified timeout. |
TraceDoesNotAllowNestedTasksError |
This error is raised when the user tries to use a task from within a trace. |
UnionRpcError |
This error is raised when communication with the Union server fails. |
Methods
| Method | Description |
|---|---|
silence_polling_error() |
Suppress specific polling errors in the event loop. |
Variables
| Property | Type | Description |
|---|---|---|
GPU_FAULT_CODES |
tuple |
Methods
silence_polling_error()
def silence_polling_error(
loop,
context,
)Suppress specific polling errors in the event loop.
| Parameter | Type | Description |
|---|---|---|
loop |
||
context |