Second delay
Second-delay scheduling triggers jobs at intervals of 1 to 60 seconds, ideal for near-real-time workloads that require continuous polling.
Background
Second-delay scheduling is ideal for time-sensitive services, such as near-real-time applications that require continuous polling.
Second-delay scheduling lets you trigger a job 1 to 60 seconds after the previous run completes.
Second-delay scheduling provides the following benefits:
-
High reliability: If a machine running a second-delay job fails, SchedulerX automatically reruns the job on another machine within 30 seconds.
-
Versatile job types: Second-delay scheduling is a type of time-based scheduling that supports all job types and execution modes, including simple Java, distributed Java, and script jobs. When combined with a memory grid, it allows for continuous processing of large data volumes.
-
Detailed statistics: SchedulerX provides statistics for second-delay jobs, including total executions, successes, and failures for the day, along with the results of the last 10 runs.
Configure a second-delay schedule
Configure a second-delay schedule when creating a job.
-
Go to the Timing configuration step. For more information, see Create a scheduling job.
-
In the Add Task configuration wizard, on the Timing configuration step, configure the required information, and then click Next.
From the list to the right of Time type, select second_delay to configure the Fixed delay.
NoteThe range for Fixed delay is 1 to 60. The unit is seconds.
Optional: If needed, in the Advanced Settings area, you can also set Time Offset, Time zone, and Effective Time.
Parameter
Description
Default
Data Timestamp Offset
The time offset in seconds.
None
Time zone
Select a time zone based on your business needs.
None
Effective Time
The time at which the job becomes effective.
Effective immediately
View statistics for second-delay jobs
After creating a second-delay job, in the execution list in the left navigation bar, click Details in the Actions column of the target record. The Task instance details panel displays the following statistics.
-
Today's execution results.
-
Yesterday's execution results.
-
Results of the last 10 executions.