Skip to main content

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​

AttributeTypeDescription
plugin_config[Sleep](sleep.md?sid=flyte_extras__sleep_sleep)Configuration object specifying the sleep parameters for the task execution.
task_typestr = "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​

NameTypeDescription
plugin_config[Sleep](sleep.md?sid=flyte_extras__sleep_sleep)The plugin configuration for the sleep task.
task_typestr = "core-sleep"The identifier representing the task type.