Fixed rate

Updated at:
Copy as MD

Natively, Cron does not support minute-based intervals that are not divisors of 60, such as running a job every 40 minutes. To handle these fine-grained timing requirements, you can use fixed-rate scheduling. With this method, you can define jobs that run at regular, non-standard intervals by using a simple expression. However, it does not support second-level precision.

Configure fixed-rate scheduling

You can use fixed-rate scheduling when you create a job. For detailed instructions on how to create a job, see Create a job. This topic describes only how to configure fixed-rate scheduling during job creation.

  1. Go to the Timing configuration step. For more information, see Create a job.

  2. In the Timing configuration step of the Add Task wizard, set the scheduling parameters, then click Next.

    1. From the Time type drop-down list, select fixed_rate.

    2. In the Fixed frequency field, enter the execution interval in seconds.

      Note

      The fixed frequency must be at least 10 seconds. For high-frequency scheduling requirements, use XXL-JOB.

    3. Optional: In the Advanced Settings area, 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 from the scheduled time. You can access this value from the context at runtime.

      None

      Time zone

      Specifies the time zone for the schedule. You can choose from a list of common countries, regions, and standard GMT offsets.

      None

      Effective Time

      Specifies when the job's schedule takes effect.

      Immediately