Fixed rate
Standard cron expressions cannot schedule jobs at minute-based intervals that are not even divisors of 60, such as every 40 minutes. The fixed rate method addresses this limitation with a simple expression that supports non-standard intervals, but does not support second-level scheduling.
Configure a fixed rate job
You can configure a fixed rate schedule when you create a job. For the full procedure, see Create a job. The following steps focus on the fixed rate configuration.
-
Go to the Schedule Configuration step. For more information, see Create a job.
-
On the Schedule Configuration tab in the Create Task wizard, set the scheduling parameters and click Next.
-
From the Time Type drop-down list, select fixed_rate.
-
In the fixed frequency field, enter the execution interval in seconds.
NoteThe fixed frequency must be at least 10 seconds. For high-frequency scheduling, use XXL-JOB.
-
Optional: In the advanced configuration section, you can also set the time offset, Time Zone, and Effective Time.
The following table describes the advanced configuration parameters:
Parameter
Description
Default
Data Timestamp Offset
The offset of the data time relative to the schedule time. This value can be retrieved from the job context at runtime.
None
Time Zone
The time zone for the schedule. Choose a common region such as Asia/Shanghai, or specify a standard GMT offset such as GMT+8.
None
Effective Time
The time when the job becomes active.
Effective immediately
-