Core Flytekit#
This package contains all of the most common abstractions you’ll need to write Flyte workflows and extend Flytekit.
Branching and Conditionals#
Branches and conditionals can be expressed explicitly in Flyte. These conditions are evaluated
in the flyte engine and hence should be used for control flow. dynamic workflows
can be used to perform custom conditional logic not supported by flytekit
Use a conditional section to control the flow of a workflow. |
Customizing Tasks & Workflows#
Metadata for a Task. |
|
This class is used to specify both resource requests and resource limits. |
|
Defines the behavior for a workflow execution in the case of an observed node execution failure. |
|
Custom PodTemplate specification for a Task. |
Dynamic and Nested Workflows#
See the Dynamic
module for more information.
Please first see the comments for |
Signaling#
Create a Gate object for binary approval. |
|
Create a sleep Gate object. |
|
Create a Gate object that waits for user input of the specified type. |
Scheduling#
Use this when you have a launch plan that you want to run on a cron expression. |
|
Use this class to schedule a fixed-rate interval for a launch plan. |
Notifications#
Reference Entities#
See the documentation for |
|
A reference object containing metadata that points to a remote launch plan. |
|
A reference object containing metadata that points to a remote task. |
|
A reference object containing metadata that points to a remote workflow. |
|
A reference task is a pointer to a task that already exists on your Flyte installation. |
|
A reference workflow is a pointer to a workflow that already exists on your Flyte installation. |
|
A reference launch plan is a pointer to a launch plan that already exists on your Flyte installation. |
Core Task Types#
Base task types for all SQL tasks. |
|
This is an intermediate class that represents Flyte Tasks that run a container at execution time. |
|
A Python Function task should be used as the base for all extensions that have a python function. |
|
This class should be used as the base class for all Tasks that do not have a user defined function body, but have a platform defined execute method. |
|
Launch Plans are one of the core constructs of Flyte. |
Secrets and SecurityContext#
See Using Secrets in a Task for usage examples. |
|
This is a higher level wrapper object that for the most part users shouldn't have to worry about. |
Common Flyte IDL Objects#
Auth configuration for IAM or K8s service account. |
|
Label values to be applied to a workflow execution resource. |
|
Annotation values to be applied to a workflow execution resource. |
|
This class holds enum values used for setting notifications. |
|
This literal model is used to represent binary data offloaded to some storage location which is identifiable with a unique string. |
|
This is metadata for the Blob literal. |
|
This IDL message represents a literal value in the Flyte ecosystem. |
|
Scalar wrapper around Flyte types. |
|
This is a oneof message, only one of the kwargs may be set, representing one of the Flyte types. |
|
This type represents offloaded data and is typically used for things like files. |
Task Utilities#
Flyte-specific object used to wrap the hash function for a specific type |
Documentation#
Full user description with formatting preserved. |
|
DescriptionEntity contains detailed description for the task/workflow/launch plan. |
|
Link to source code used to define this task or workflow. |