Second-delay scheduling

Updated at:
Copy as MD

When workloads require near real-time processing at sub-minute intervals, standard cron scheduling (minimum 1-minute granularity) is insufficient. Second-delay scheduling triggers a job at a fixed interval between 1 and 60 seconds, providing continuous short-interval execution for scenarios such as real-time data synchronization, metric collection, and event-driven processing.

How it works

After SchedulerX triggers a second-delay job, the system waits a specified number of seconds before triggering the job again. You can configure the delay interval from 1 to 60 seconds to match your workload requirements.

Failover behavior

If a worker goes down during execution, SchedulerX reassigns the job to another available worker within 30 seconds.

Supported job types

Second-delay scheduling works with all job types and execution modes:

  • Simple Java jobs

  • Distributed Java jobs

  • Script jobs

Combine distributed Java jobs with memory grids to continuously process large volumes of data at second-level intervals.

Create a second-delay job

  1. Open the Timing configuration wizard page. For more information, see Create a job.
  2. On the Timing configuration page of the Create task wizard, configure the following parameters, and then click Next Step.
    ParameterDescription
    Time typeSelect second_delay.
    Fixed delayThe delay interval in seconds. Valid values: 1 to 60. A shorter delay increases execution frequency but also increases resource consumption.
    Time offsetThe data time offset, in seconds.
    Time zoneThe time zone for scheduling. Select a time zone that matches your data processing requirements.

Monitor second-delay job execution

After you create a second-delay job, a Second-delay job statistics tab appears on the Job instance details page. Use this tab to monitor job health and diagnose failures.

The tab displays:

MetricDescription
Current-day execution detailsTrigger count, number of successes, and number of failures for the current day
Previous-day execution detailsThe same metrics for the previous day, for comparison
Recent execution resultsThe 10 most recent execution results with status and timestamps