flytekit.models.matchable_resource
flytekit.models.matchable_resource
Directory
Classes
flytekit.models.matchable_resource.ClusterResourceAttributes
def ClusterResourceAttributes (
attributes,
):
Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
Dict keys are the case-sensitive names of variables in templatized resource files.
Dict values should be the custom values which get substituted during resource creation.
Parameter
Type
attributes
Methods
from_flyte_idl()
def from_flyte_idl (
pb2_object,
):
Parameter
Type
pb2_object
serialize_to_string()
def serialize_to_string ()
short_string()
to_flyte_idl()
verbose_string()
Properties
Property
Type
Description
attributes
is_empty
flytekit.models.matchable_resource.ExecutionClusterLabel
def ExecutionClusterLabel (
value,
):
Label value to determine where the execution will be run
Methods
from_flyte_idl()
def from_flyte_idl (
pb2_object,
):
Parameter
Type
pb2_object
serialize_to_string()
def serialize_to_string ()
short_string()
to_flyte_idl()
verbose_string()
Properties
Property
Type
Description
is_empty
value
flytekit.models.matchable_resource.ExecutionQueueAttributes
def ExecutionQueueAttributes (
tags,
):
Tags used for assigning execution queues for tasks matching a project, domain and optionally, workflow.
Methods
from_flyte_idl()
def from_flyte_idl (
pb2_object,
):
Parameter
Type
pb2_object
serialize_to_string()
def serialize_to_string ()
short_string()
to_flyte_idl()
verbose_string()
Properties
Property
Type
Description
is_empty
tags
flytekit.models.matchable_resource.MatchableResource
Methods
enum_to_string()
def enum_to_string (
val,
):
string_to_enum()
def string_to_enum (
val,
):
flytekit.models.matchable_resource.MatchingAttributes
def MatchingAttributes (
cluster_resource_attributes,
execution_queue_attributes,
execution_cluster_label,
plugin_overrides,
):
At most one target from cluster_resource_attributes, execution_queue_attributes or execution_cluster_label
can be set.
Parameter
Type
cluster_resource_attributes
execution_queue_attributes
execution_cluster_label
plugin_overrides
Methods
from_flyte_idl()
def from_flyte_idl (
pb2_object,
):
Parameter
Type
pb2_object
serialize_to_string()
def serialize_to_string ()
short_string()
to_flyte_idl()
verbose_string()
Properties
Property
Type
Description
cluster_resource_attributes
execution_cluster_label
execution_queue_attributes
is_empty
plugin_overrides
flytekit.models.matchable_resource.PluginOverride
def PluginOverride (
task_type,
plugin_id,
missing_plugin_behavior,
):
Alternate plugin implementations requested for a specific task type.
Parameter
Type
task_type
plugin_id
missing_plugin_behavior
Methods
from_flyte_idl()
def from_flyte_idl (
pb2_object,
):
Parameter
Type
pb2_object
serialize_to_string()
def serialize_to_string ()
short_string()
string_to_enum()
def string_to_enum (
val,
):
to_flyte_idl()
verbose_string()
Properties
Property
Type
Description
is_empty
missing_plugin_behavior
plugin_id
task_type
flytekit.models.matchable_resource.PluginOverrides
def PluginOverrides (
overrides,
):
Alternate plugin implementations for designated task types.
Methods
from_flyte_idl()
def from_flyte_idl (
pb2_object,
):
Parameter
Type
pb2_object
serialize_to_string()
def serialize_to_string ()
short_string()
to_flyte_idl()
verbose_string()
Properties
Property
Type
Description
is_empty
overrides