create_worker
Register scheduled workers using fixed, interval, or cron schedules. Configure script path, env vars, notifications, and timeouts for automated runs.
Instructions
Register a new scheduled worker. sched_type: 'fixed' (comma-separated times like '09:00,14:30'), 'interval' (like '2h 30m' or '1h'), or 'cron' (like '0 9 * * 1-5'). timeout_minutes=0 means no timeout. env_vars is KEY=VALUE lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| env_vars | No | KEY=VALUE lines injected into subprocess env | |
| notify_on | No | When to send notification: always, failure, or success | always |
| task_path | Yes | Absolute path to .py, .bat, .sh, or .cmd file | |
| output_dir | No | ||
| sched_type | Yes | ||
| new_console | No | ||
| sched_value | Yes | ||
| notify_email | No | Email address for run notifications (optional) | |
| requirements | No | Comma-separated pip packages to install | |
| timeout_minutes | No |