create_cron
Create a new cron task in Qinglong by specifying a command and schedule (cron expression). Supports optional name, labels, pre/post scripts, and extra schedules.
Instructions
Create a new cron task. Required: command (e.g. ql task xxx.js or any shell command) and schedule (cron expression, e.g. 0 8 * * *).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Task name (optional, defaults to command) | |
| labels | No | Labels for the task | |
| command | Yes | Command to execute (required) | |
| schedule | Yes | Cron expression, e.g. 0 8 * * * (required) | |
| task_after | No | Shell script executed after the task | |
| task_before | No | Shell script executed before the task | |
| extra_schedules | No | Additional scheduling rules |