Skip to main content

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

AttributeTypeDescription
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_typestr = core-sleepA 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

NameTypeDescription
plugin_config[Sleep](sleep.md?sid=flyte_extras__sleep_sleep)The configuration object containing the sleep duration and timing settings.
task_typestring = core-sleepThe identifier for the task type, defaulting to core-sleep.