Name and type of inputs specified as a dictionary.
output_dataframe_type
typing.Optional[typing.Type]
If some data is produced by this query, then you can specify the output dataframe type.
secret_group
typing.Optional[str]
Optional group for secrets in the secret store. The environment variable name is auto-generated from {secret_group}_{key}, uppercased with hyphens replaced by underscores. If omitted, the key alone is used.
snowflake_private_key
typing.Optional[str]
The secret key for the Snowflake private key (key-pair auth).
snowflake_private_key_passphrase
typing.Optional[str]
The secret key for the private key passphrase (if encrypted).
batch
bool
When True, list inputs are expanded into a multi-row VALUES clause. The query_template should contain a single VALUES (%(col)s, ...) placeholder and each input should be a list of equal length.
The aio function allows executing “sync” tasks, in an async context. This helps with migrating v1 defined sync
tasks to be used within an asyncio parent task.
This function will also re-raise exceptions from the underlying task.
Returns additional configuration for the task. This is a set of key-value pairs that can be used to
configure the task execution environment at runtime. This is usually used by plugins.
Returns the container args for the task. This is a set of key-value pairs that can be used to
configure the task execution environment at runtime. This is usually used by plugins.
Returns additional configuration for the task. This is a set of key-value pairs that can be used to
configure the task execution environment at runtime. This is usually used by plugins.
This configuration allows executing raw containers in Flyte using the Flyte CoPilot system
Flyte CoPilot, eliminates the needs of sdk inside the container. Any inputs required by the users container
are side-loaded in the input_path
Any outputs generated by the user container - within output_path are automatically uploaded
Think of this as a local execute method for your task. This function will be invoked by the call method
when not in a Flyte task execution context. See the implementation below for an example.
Override various parameters of the task template. This allows for dynamic configuration of the task
when it is called, such as changing the image, resources, cache policy, etc.
Parameter
Type
Description
short_name
Optional[str]
Optional override for the short name of the task.
resources
Optional[Resources]
Optional override for the resources to use for the task.
cache
Optional[CacheRequest]
Optional override for the cache policy for the task.
retries
Union[int, RetryStrategy]
Optional override for the number of retries for the task.
timeout
Optional[TimeoutType]
Optional override for the timeout for the task.
reusable
Union[ReusePolicy, Literal['off'], None]
Optional override for the reusability policy for the task.
env_vars
Optional[Dict[str, str]]
Optional override for the environment variables to set for the task.
secrets
Optional[SecretRequest]
Optional override for the secrets that will be injected into the task at runtime.
max_inline_io_bytes
int | None
Optional override for the maximum allowed size (in bytes) for all inputs and outputs passed directly to the task.
pod_template
Optional[Union[str, PodTemplate]]
Optional override for the pod template to use for the task.
queue
Optional[str]
Optional override for the queue to use for the task.
interruptible
Optional[bool]
Optional override for the interruptible policy for the task.
links
Tuple[Link, ...]
Optional override for the Links associated with the task.
kwargs
**kwargs
Additional keyword arguments for further overrides. Some fields like name, image, docs, and interface cannot be overridden. :return: A new TaskTemplate instance with the overridden parameters.
Returns the SQL for the task. This is a set of key-value pairs that can be used to
configure the task execution environment at runtime. This is usually used by plugins.