Scheduled Task¶
Scheduled tasks automatically execute scripts at specified times according to Crontab expressions.
Usage Steps¶
- Go to "Operations Management - Scheduled Task"
- Click "New Task"
- Fill in the task name and description
- Configure the Crontab expression (visual generator supported)
- Select the script to execute (script repository)
- Select the target host (only onboarded hosts are selectable)
- Save and enable
Crontab Expression¶
Standard five-field Crontab:
Examples:
| Expression | Description |
|---|---|
*/5 * * * * |
Every 5 minutes |
0 2 * * * |
Every day at 2 AM |
0 9 * * 1 |
Every Monday at 9 AM |
Task Management¶
- Enable / disable tasks
- View recent execution results
- Manually trigger execution
- Edit / delete tasks
Tips¶
- The execution results of scheduled tasks also go into "Task History"
- The executor is based on the run_user at the time the task was created