Fixed rate

更新时间:
复制 MD 格式

Cron does not support minute-based intervals that are not divisors of 60, such as every 40 minutes. Fixed-rate scheduling lets you define jobs that run at regular, non-standard intervals with a simple expression, though it does not support second-level precision.

Configure fixed-rate scheduling

You can configure fixed-rate scheduling when you create a job. For more information about creating a job, see Create a job. This topic covers only the fixed-rate scheduling configuration.

  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. Choose from a list of common countries, regions, and standard GMT offsets.

      None

      Effective Time

      Specifies when the job schedule takes effect.

      Immediately