The page you navigated to does not exist, so we brought you to the closest page to it.
flyte.extend
| Class |
Description |
AsyncFunctionTaskTemplate |
A task template that wraps an asynchronous functions. |
ImageBuildEngine |
ImageBuildEngine contains a list of builders that can be used to build an ImageSpec. |
TaskTemplate |
Task template is a template for a task that can be executed. |
| Property |
Type |
Description |
PRIMARY_CONTAINER_DEFAULT_NAME |
str |
|
TaskPluginRegistry |
_Registry |
|
def download_code_bundle(
code_bundle: flyte.models.CodeBundle,
) -> flyte.models.CodeBundle
Downloads the code bundle if it is not already downloaded.
| Parameter |
Type |
Description |
code_bundle |
flyte.models.CodeBundle |
The code bundle to download. :return: The code bundle with the downloaded path. |
def get_proto_resources(
resources: flyte._resources.Resources | None,
) -> typing.Optional[flyteidl2.core.tasks_pb2.Resources]
Get main resources IDL representation from the resources object
| Parameter |
Type |
Description |
resources |
flyte._resources.Resources | None |
User facing Resources object containing potentially both requests and limits :return: The given resources as requests and limits |
Check if the system has been initialized.
:return: True if initialized, False otherwise
def pod_spec_from_resources(
primary_container_name: str,
requests: typing.Optional[flyte._resources.Resources],
limits: typing.Optional[flyte._resources.Resources],
k8s_gpu_resource_key: str,
) -> V1PodSpec
| Parameter |
Type |
Description |
primary_container_name |
str |
|
requests |
typing.Optional[flyte._resources.Resources] |
|
limits |
typing.Optional[flyte._resources.Resources] |
|
k8s_gpu_resource_key |
str |
|