Task definitions are the atomic units of execution in Flyte. The schema is defined inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/flyteorg/flyte/llms.txt
Use this file to discover all available pages before exploring further.
flyteidl/core/tasks.proto.
TaskTemplate
TaskTemplate is the top-level message for a task definition. It is registered with FlyteAdmin via CreateTask and referenced by workflow nodes.
TaskMetadata
RuntimeMetadata
Resources
Resources defines CPU, memory, GPU, and storage requests/limits for a container.
Container
TheContainer message defines a standard Docker container execution target.
ExtendedResources
For non-standard resources not captured byResources:
K8sPod
For full control over the Kubernetes pod specification:Complete container task example
The following JSON represents a fully serialized Python container task:Defining resources in Python
Inflytekit, resources are declared on the @task decorator and automatically serialized to the protobuf Resources message: