SleepTask
This class represents an asynchronous function task template configured to execute sleep operations. It utilizes a sleep plugin configuration and identifies the task type for core sleep functionality.
Attributes
| Attribute | Type | Description |
|---|---|---|
| plugin_config | [Sleep](sleep.md?sid=flyte_extras__sleep_sleep) | Configuration object specifying the sleep parameters for the task execution. |
| task_type | str = "core-sleep" | Specifies the type identifier of the task, used to distinguish and route the sleep task. |
Constructor
Signature
def SleepTask(
plugin_config: [Sleep](sleep.md?sid=flyte_extras__sleep_sleep),
task_type: str = "core-sleep"
) -> None
Parameters
| Name | Type | Description |
|---|---|---|
| plugin_config | [Sleep](sleep.md?sid=flyte_extras__sleep_sleep) | The plugin configuration for the sleep task. |
| task_type | str = "core-sleep" | The identifier representing the task type. |