flytekit.models.core.errors
Directory
Classes
Class | Description |
---|---|
ContainerError |
None. |
ErrorDocument |
None. |
Timestamp |
A ProtocolMessage. |
flytekit.models.core.errors.ContainerError
def ContainerError(
code: str,
message: str,
kind: int,
origin: int,
timestamp: google.protobuf.timestamp_pb2.Timestamp,
worker: str,
):
Parameter | Type |
---|---|
code |
str |
message |
str |
kind |
int |
origin |
int |
timestamp |
google.protobuf.timestamp_pb2.Timestamp |
worker |
str |
Methods
Method | Description |
---|---|
from_flyte_idl() |
|
serialize_to_string() |
None |
short_string() |
|
to_flyte_idl() |
|
verbose_string() |
from_flyte_idl()
def from_flyte_idl(
proto,
):
Parameter | Type |
---|---|
proto |
serialize_to_string()
def serialize_to_string()
short_string()
def short_string()
to_flyte_idl()
def to_flyte_idl()
verbose_string()
def verbose_string()
Properties
Property | Type | Description |
---|---|---|
code | ||
is_empty | ||
kind | ||
message | ||
origin | ||
timestamp | ||
worker |
flytekit.models.core.errors.ErrorDocument
def ErrorDocument(
error,
):
Parameter | Type |
---|---|
error |
Methods
Method | Description |
---|---|
from_flyte_idl() |
|
serialize_to_string() |
None |
short_string() |
|
to_flyte_idl() |
|
verbose_string() |
from_flyte_idl()
def from_flyte_idl(
proto,
):
Parameter | Type |
---|---|
proto |
serialize_to_string()
def serialize_to_string()
short_string()
def short_string()
to_flyte_idl()
def to_flyte_idl()
verbose_string()
def verbose_string()
Properties
Property | Type | Description |
---|---|---|
error | ||
is_empty |
flytekit.models.core.errors.Timestamp
A ProtocolMessage
Methods
Method | Description |
---|---|
FromDatetime() |
Converts datetime to Timestamp |
FromJsonString() |
Parse a RFC 3339 date string format to Timestamp |
FromMicroseconds() |
Converts microseconds since epoch to Timestamp |
FromMilliseconds() |
Converts milliseconds since epoch to Timestamp |
FromNanoseconds() |
Converts nanoseconds since epoch to Timestamp |
FromSeconds() |
Converts seconds since epoch to Timestamp |
GetCurrentTime() |
Get the current UTC into Timestamp |
ToDatetime() |
Converts Timestamp to a datetime |
ToJsonString() |
Converts Timestamp to RFC 3339 date string format |
ToMicroseconds() |
Converts Timestamp to microseconds since epoch |
ToMilliseconds() |
Converts Timestamp to milliseconds since epoch |
ToNanoseconds() |
Converts Timestamp to nanoseconds since epoch |
ToSeconds() |
Converts Timestamp to seconds since epoch |
FromDatetime()
def FromDatetime(
dt,
):
Converts datetime to Timestamp.
Parameter | Type |
---|---|
dt |
FromJsonString()
def FromJsonString(
value,
):
Parse a RFC 3339 date string format to Timestamp.
Parameter | Type |
---|---|
value |
FromMicroseconds()
def FromMicroseconds(
micros,
):
Converts microseconds since epoch to Timestamp.
Parameter | Type |
---|---|
micros |
FromMilliseconds()
def FromMilliseconds(
millis,
):
Converts milliseconds since epoch to Timestamp.
Parameter | Type |
---|---|
millis |
FromNanoseconds()
def FromNanoseconds(
nanos,
):
Converts nanoseconds since epoch to Timestamp.
Parameter | Type |
---|---|
nanos |
FromSeconds()
def FromSeconds(
seconds,
):
Converts seconds since epoch to Timestamp.
Parameter | Type |
---|---|
seconds |
GetCurrentTime()
def GetCurrentTime()
Get the current UTC into Timestamp.
ToDatetime()
def ToDatetime(
tzinfo,
):
Converts Timestamp to a datetime.
Parameter | Type |
---|---|
tzinfo |
ToJsonString()
def ToJsonString()
Converts Timestamp to RFC 3339 date string format.
Returns: A string converted from timestamp. The string is always Z-normalized and uses 3, 6 or 9 fractional digits as required to represent the exact time. Example of the return format: ‘1972-01-01T10:00:20.021Z’
ToMicroseconds()
def ToMicroseconds()
Converts Timestamp to microseconds since epoch.
ToMilliseconds()
def ToMilliseconds()
Converts Timestamp to milliseconds since epoch.
ToNanoseconds()
def ToNanoseconds()
Converts Timestamp to nanoseconds since epoch.
ToSeconds()
def ToSeconds()
Converts Timestamp to seconds since epoch.