All Products
Search
Document Center

SchedulerX:Second delay

Last Updated:Jan 22, 2024

This topic describes when and how to use second-delay scheduling.

Background information

Second-delay scheduling is suitable for workloads that have high requirements for real-time computing, such as near real-time workloads that require continuous round-robin scheduling.

You can use second-delay scheduling to trigger a job at an interval from 1 to 60 seconds. After the system triggers a job, the system must wait a specified number of seconds before it can trigger the job again.

Second-delay scheduling has the following benefits:

  • High reliability: SchedulerX can ensure the high reliability of second-delay scheduling. For example, if a worker that runs a job is down, SchedulerX can run the job again on another worker within 30 seconds.
  • Multiple job types: Second-delay scheduling based on SchedulerX is a type of periodic scheduling. Second-delay scheduling supports all types of jobs and execution modes. You can use second-delay scheduling to schedule simple Java jobs, distributed Java jobs, and script jobs. You can use memory grids with second-delay scheduling to continuously process large amounts of data.
  • Statistics: SchedulerX provides statistics about second-delay jobs. For example, SchedulerX displays how many times a job is triggered on the current day, the numbers of successes and failures, and the 10 most recent execution results.

Examples of second-delay jobs

You can configure second-delay scheduling when you create a job.

  1. Go to the Timing configuration wizard page. For more information, see Create a job.
  2. On the Timing configuration wizard page of the Create task wizard, configure the related parameters and click Next Step.
    ParameterDescription
    Time typeSelect second_delay.
    Fixed delayValid values: 1 to 60. Unit: seconds.
    Time offsetThe data time offset. Unit: seconds.
    Time zoneSelect a time zone based on your business requirements.

View statistics of a second-delay job

After you create a second-delay job, the Second-delay job statistics tab appears on the Job instance details page. The tab displays the following information:

  • The execution details of the job on the current day.
  • The execution details of the job on the previous day.
  • The 10 most recent execution results.