1.16.10

flytekit.models.concurrency

Directory

Classes

Class Description
ConcurrencyLimitBehavior
ConcurrencyPolicy Defines the concurrency policy for a launch plan.

flytekit.models.concurrency.ConcurrencyLimitBehavior

Methods

Method Description
enum_to_string()

enum_to_string()

def enum_to_string(
    val,
)
Parameter Type Description
val

flytekit.models.concurrency.ConcurrencyPolicy

Defines the concurrency policy for a launch plan.

class ConcurrencyPolicy(
    max_concurrency: int,
    behavior: flytekit.models.concurrency.ConcurrencyLimitBehavior,
)
Parameter Type Description
max_concurrency int
behavior flytekit.models.concurrency.ConcurrencyLimitBehavior

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(
    pb2_object: flyteidl.admin.launch_plan_pb2.ConcurrencyPolicy,
) -> ConcurrencyPolicy
Parameter Type Description
pb2_object flyteidl.admin.launch_plan_pb2.ConcurrencyPolicy

serialize_to_string()

def serialize_to_string()

short_string()

def short_string()

:rtype: Text

to_flyte_idl()

def to_flyte_idl()

:rtype: flyteidl.admin.launch_plan_pb2.ConcurrencyPolicy

Properties

Property Type Description
behavior
Policy behavior when concurrency limit is reached.
is_empty
max_concurrency
Maximum number of concurrent workflows allowed.