Scheduler is a component of Adeptia Suite that manages events and triggers process flows based on the occurrence of events. The normal state of the Scheduler is Running. However, it may be required to pause or stop occasionally for system performance or maintenance reasons. When the scheduler is Paused or Stopped, no scheduler supported Event will be f
Anchor | ||||
---|---|---|---|---|
|
In the Adeptia Suite, this feature is available in:
Enterprise | Premier | Professional | Express |
---|---|---|---|
?√? | √ | ?√? | √ |
Events managed by the scheduler (time-based events) are:
...
Firing of Events when Scheduler is Stopped
The events that are scheduled to fire while the scheduler is stopped will be fired upon restarting of the scheduler based on the Repeat Count value as described in Table 4 .
...
Info |
---|
When the scheduler is stopped, events cannot be activated or deactivated. |
Info |
---|
When the scheduler is paused, events can be activated, but they will not trigger. |
Firing of Events when Scheduler is Paused
When the scheduler is paused, the events that are scheduled to be fired will not be triggered. When the scheduler is resumed, only the remaining events will be triggered. The misfired events will be lost.
| When the scheduler is paused, events can be activated, but they will not trigger. |
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
For scheduler related properties, you can refer to the quartz.properties file that is located in the ../AdeptiaServer-6.2/ServerKernel directory. These include:
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Description | This property is used to define the maximum number of misfired triggers that the jobstore can handle at a given time |
---|---|
Default Value | 5 |
Possible Values | 1-100 |
Selection Criteria | NA |
Comments | If the jobstore handles many triggers at once then the database tables could get locked, thus hampering the performance of other triggers. This property limits the maximum number of misfired events that can be fired at a time. If there are numerous misfired events, then they are fired in batches. |
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Description | This property is used to define the number of milliseconds that the scheduler will retain a trigger, before passing it to the next firing time, before it is considered as misfired |
---|---|
Default Value | 10000 |
Possible Values | Any positive integer |
Selection Criteria | Change the value of this property if you want to increase/decrease the misfire threshold value of the scheduler.Comments |
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Description | This property is used to define the number of threads available for concurrent execution of jobs (for firing of events) |
---|---|
Default Value | 15 |
Possible Values | 1-100 |
Selection Criteria | NA |
Comments | If only few jobs are fired a few times in a day, then 1 thread is sufficient. If thousands of jobs are fired every minute, then 50 or 100 threads are required, based on the jobs count and system resources. |
Steps to manage the scheduler
- Click the Administer tab and then click Maintenance menu. All the options of Maintenance menu are displayed.
Select the Scheduler option. The Manage Scheduler screen is displayed showing the status of scheduler (see Figure 2).
...
...
Figure 2: Change Scheduler State
This screen is divided into two parts. The first part displays the status of the scheduler and allows you to change the status as and when required. The second part displays a list of events that are activated (only if scheduler is running). You can deactivate an event by clicking Deactivate against the event. This will deactivate the event and remove it from the list.
Info The autoCleanup and autoLogCleanup events cannot be deactivated as they are generated by the system.
- To view an event, click the View link against the required event. The properties of the event are displayed.
- To stop the Scheduler, click Stop Scheduler button. A screen is displayed showing that scheduler stopped successfully.
- To start the scheduler, on the Change Scheduler State screen, click Start Scheduler. A screen is displayed showing that the scheduler started successfully.
To pause the Scheduler, click Pause Scheduler button. A screen is displayed showing that scheduler stopped successfully.
Info The Pause Scheduler button changes to Resume Scheduler, once the scheduler is paused.
When the scheduler is Stopped or Paused, the list of activated events is not displayed.- To resume the scheduler, click Resume Scheduler button. This resumes the scheduler and displays the scheduler screen.
...