Task Methods
| Method | Parameters | Description |
|---|---|---|
createTask | name: stringconfig: TaskConfig | Creates a new task |
scheduleTask | taskId: stringschedule: string | Schedules an existing task |
Types
Steps
1
createTask
2
Creates a new task with the specified configuration
3
Parameters:
4
name: string - Name of the taskconfig: TaskConfig - Task configuration5
Returns:
Task6
scheduleTask
7
Schedules a task for execution
8
Parameters:
9
taskId: string - ID of the task to scheduleschedule: string - Cron expression or date