Fixed rate
Standard cron expressions cannot schedule jobs at minute-based intervals that are not even divisors of 60, such as every 40 minutes. For these fine-grained scheduling needs, use the fixed rate method. This method lets you define recurring jobs at non-standard intervals using a simple expression, but it does not support second-level scheduling.
Configure a fixed rate job
You can configure a fixed rate schedule when you create a job. For detailed instructions on creating a job, see Create a job. This topic only describes how to configure the fixed rate schedule.
-
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. You can retrieve this value from the job context at runtime.
None
Time Zone
Select the time zone for the schedule. You can choose from a list of common regions, such as Asia/Shanghai, or use a standard GMT offset, such as GMT+8.
None
Effective Time
The time when the job becomes active.
Effective immediately
-