Core flytekit#
This package contains 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#
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 cookbook:secrets 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#
This class holds enum values used for setting notifications. |
|
This is metadata for the Blob literal. |
|
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 |
Artifacts#
An Artifact is effectively just a metadata layer on top of data that exists in Flyte. |
Documentation#
Full user description with formatting preserved. |
|
DescriptionEntity contains detailed description for the task/workflow/launch plan. Documentation could provide insight into the algorithms, business use case, etc. Args: short_description (str): One-liner overview of the entity. long_description (Optional[Description]): Full user description with formatting preserved. source_code (Optional[SourceCode]): link to source code used to define this entity. |
|
Link to source code used to define this task or workflow. |