SleepTask
This class provides a template for executing asynchronous sleep tasks within a workflow. It utilizes a specific plugin configuration to manage time-based delays and is identified by a core sleep task type.
Attributes
| Attribute | Type | Description |
|---|---|---|
| plugin_config | [Sleep](sleep.md?sid=flyte_extras__sleep_sleep) | Configuration object of type Sleep that defines the specific parameters and settings for the sleep task execution. |
| task_type | str = core-sleep | A string identifier used by the system to categorize and route the task as a core-sleep operation. |
Constructor
Signature
def SleepTask() - > null
Signature
def SleepTask(
plugin_config: [Sleep](sleep.md?sid=flyte_extras__sleep_sleep),
task_type: string = core-sleep
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| plugin_config | [Sleep](sleep.md?sid=flyte_extras__sleep_sleep) | The configuration object containing the sleep duration and timing settings. |
| task_type | string = core-sleep | The identifier for the task type, defaulting to core-sleep. |