2.0.0b35
TaskDetails
Package: flyte.remote
class TaskDetails(
pb2: task_definition_pb2.TaskDetails,
max_inline_io_bytes: int,
overriden_queue: Optional[str],
)| Parameter | Type | Description |
|---|---|---|
pb2 |
task_definition_pb2.TaskDetails |
|
max_inline_io_bytes |
int |
|
overriden_queue |
Optional[str] |
Methods
| Method | Description |
|---|---|
fetch() |
|
get() |
Get a task by its ID or name. |
override() |
|
to_dict() |
Convert the object to a JSON-serializable dictionary. |
to_json() |
Convert the object to a JSON string. |
fetch()
def fetch(
name: str,
project: str | None,
domain: str | None,
version: str | None,
auto_version: AutoVersioning | None,
) -> TaskDetails| Parameter | Type | Description |
|---|---|---|
name |
str |
|
project |
str | None |
|
domain |
str | None |
|
version |
str | None |
|
auto_version |
AutoVersioning | None |
get()
def get(
name: str,
project: str | None,
domain: str | None,
version: str | None,
auto_version: AutoVersioning | None,
) -> LazyEntityGet a task by its ID or name. If both are provided, the ID will take precedence.
Either version or auto_version are required parameters.
| Parameter | Type | Description |
|---|---|---|
name |
str |
The name of the task. |
project |
str | None |
The project of the task. |
domain |
str | None |
The domain of the task. |
version |
str | None |
The version of the task. |
auto_version |
AutoVersioning | None |
If set to “latest”, the latest-by-time ordered from now, version of the task will be used. If set to “current”, the version will be derived from the callee tasks context. This is useful if you are deploying all environments with the same version. If auto_version is current, you can only access the task from within a task context. |
override()
def override(
short_name: Optional[str],
resources: Optional[flyte.Resources],
retries: Union[int, flyte.RetryStrategy],
timeout: Optional[flyte.TimeoutType],
env_vars: Optional[Dict[str, str]],
secrets: Optional[flyte.SecretRequest],
max_inline_io_bytes: Optional[int],
cache: Optional[flyte.Cache],
queue: Optional[str],
kwargs: **kwargs,
) -> TaskDetails| Parameter | Type | Description |
|---|---|---|
short_name |
Optional[str] |
|
resources |
Optional[flyte.Resources] |
|
retries |
Union[int, flyte.RetryStrategy] |
|
timeout |
Optional[flyte.TimeoutType] |
|
env_vars |
Optional[Dict[str, str]] |
|
secrets |
Optional[flyte.SecretRequest] |
|
max_inline_io_bytes |
Optional[int] |
|
cache |
Optional[flyte.Cache] |
|
queue |
Optional[str] |
|
kwargs |
**kwargs |
to_dict()
def to_dict()Convert the object to a JSON-serializable dictionary.
Returns: dict: A dictionary representation of the object.
to_json()
def to_json()Convert the object to a JSON string.
Returns: str: A JSON string representation of the object.
Properties
| Property | Type | Description |
|---|---|---|
cache |
None |
The cache policy of the task. |
default_input_args |
None |
The default input arguments of the task. |
name |
None |
The name of the task. |
queue |
None |
The queue to use for the task. |
required_args |
None |
The required input arguments of the task. |
resources |
None |
The resources of the task. |
secrets |
None |
The secrets of the task. |
task_type |
None |
The type of the task. |
version |
None |
The version of the task. |