TaskData
TaskData
Represents the data structure for a task instance.
This includes the task metadata and any custom data passed to the task.
Signature
interface TaskData<T extends Record<string, any> = Record<string, any>> {
name: string;
data: T;
schedule: TaskSchedule;
timezone?: string;
immediate?: boolean;
}
name
property
stringThe name of the task definition to execute
data
property
TCustom data passed to the task execution context
schedule
property
Schedule configuration for when the task should run
timezone
property
stringOptional timezone for the schedule
immediate
property
booleanWhether the task should run immediately when created