1.16.10

flytekit.models.core.errors

Directory

Classes

Class Description
ContainerError
ErrorDocument

flytekit.models.core.errors.ContainerError

class ContainerError(
    code: str,
    message: str,
    kind: int,
    origin: int,
    timestamp: google.protobuf.timestamp_pb2.Timestamp,
    worker: str,
)
Parameter Type Description
code str A succinct code about the error
message str Whatever message you want to surface about the error
kind int A value from the ContainerError.Kind enum.
origin int A value from ExecutionError.ErrorKind. Don’t confuse this with error kind, even though both are called kind.
timestamp google.protobuf.timestamp_pb2.Timestamp
worker str

Methods

Method Description
from_flyte_idl()
serialize_to_string()
short_string() :rtype: Text.
to_flyte_idl() :rtype: flyteidl.

from_flyte_idl()

def from_flyte_idl(
    proto,
)
Parameter Type Description
proto

serialize_to_string()

def serialize_to_string()

short_string()

def short_string()

:rtype: Text

to_flyte_idl()

def to_flyte_idl()

:rtype: flyteidl.core.errors_pb2.ContainerError

Properties

Property Type Description
code
:rtype: Text
is_empty
kind
:rtype: int
message
:rtype: Text
origin
The origin of the error, an enum value from ExecutionError.ErrorKind
timestamp
The timestamp of the error, as number of seconds and nanos since Epoch
worker
The worker name where the error originated

flytekit.models.core.errors.ErrorDocument

class ErrorDocument(
    error,
)
Parameter Type Description
error

Methods

Method Description
from_flyte_idl()
serialize_to_string()
short_string() :rtype: Text.
to_flyte_idl() :rtype: flyteidl.

from_flyte_idl()

def from_flyte_idl(
    proto,
)
Parameter Type Description
proto

serialize_to_string()

def serialize_to_string()

short_string()

def short_string()

:rtype: Text

to_flyte_idl()

def to_flyte_idl()

:rtype: flyteidl.core.errors_pb2.ErrorDocument

Properties

Property Type Description
error
:rtype: ContainerError
is_empty