1.16.14

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

Properties

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

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

flytekit.models.core.errors.ErrorDocument

class ErrorDocument(
    error,
)
Parameter Type Description
error

Properties

Property Type Description
error None :rtype: ContainerError
is_empty None

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