Task Methods
| Method | Parameters | Description |
|---|---|---|
createTask | name: stringconfig: TaskConfig | Creates a new task |
scheduleTask | taskId: stringschedule: string | Schedules an existing task |
Types
interface TaskConfig {
// Task configuration options
retries?: number;
timeout?: number;
schedule?: string;
}
interface Task {
id: string;
status: 'pending' | 'running' | 'completed';
// ... other properties
}