Skip to content

How to Use Scheduled Tasks to Manage Cloud Desktop Computers on a Timer

Console → Scheduled Tasks

alt text

Create a New Scheduled Task

alt text

  1. Task name: Identifier for the scheduled task.

  2. Execution period: Can be set to daily/weekly. When editing, this field is converted to a cron expression for more flexible configuration.

  3. Target: Batch select the groups to manage.

  4. Force execute: When not forced, if a group has a machine in Learning Mode, Update Mode, Read-Write Mode, or if any machine is currently downloading, the execution is skipped. When forced, these conditions are ignored and the command is executed regardless.

  5. Command: Restart, shutdown, send message, etc.

After Creation, the Task Uses Cron Rules Automatically When Editing — This Provides Greater Flexibility

alt text

Cron Syntax Explanation and Usage

A cron expression consists of 5 (or 6) fields in order: minute, hour, day-of-month, month, day-of-week (and an optional second). The meaning and value range of each field are as follows:

PositionField NameValue RangeAllowed Special CharactersDescription & Example
1stMinute0–59* , - /The minute within the hour to execute. Example: 30 means the 30th minute of every hour.
2ndHour0–23* , - /The hour of the day to execute. Example: 14 means 2:00 PM.
3rdDay of month1–31* , - / ? L WThe day of the month. Example: 1 for the 1st of every month; 1-5 for the 1st through 5th.
4thMonth1–12 or JAN–DEC* , - /The month. Example: * for every month; 1,6 for January and June only.
5thDay of week0–7 (0 and 7 both represent Sunday) or SUN–SAT* , - / ? L #The day of the week. Example: 1-5 for Monday through Friday; 0 or 7 for Sunday.

Common Special Characters:

CharacterMeaningExample
*Any / Every* in the minute field means every minute.
,List1,15,30 means at 1, 15, and 30.
-Range1-5 means 1 through 5.
/Step*/5 means every 5 units; 0/15 means every 15 units starting from 0.
?Unspecified (day/week only)Only one of day-of-month and day-of-week is usually specified; the other uses ?.

Usage Examples:

Cron ExpressionMeaning
0 9 * * *Execute every day at 9:00
0 18 * * 1-5Execute at 18:00 every Monday through Friday
30 8 1 * *Execute at 8:30 on the 1st of every month
0 */2 * * *Execute once every 2 hours on the hour
0 0 * * 0Execute every Sunday at 0:00

After successful execution, the last execution time is recorded.

Before a shutdown task (e.g., 22:00), a message-sending task can be added at 21:55 to notify users that all computers will be shut down — please save your personal files.

alt text