Scheduler configuration parameters

You can change scheduler parameters to control behavior such as expiry time, waiting time between checks for jobs, and the number of threads to allocate to an application type.
The scheduler configuration parameters are stored in the WebSphere Commerce configuration file. An example of the scheduler configuration parameters in this file are shown in the XML sample below
<component compClassName="com.ibm.commerce.scheduler.SchedulerComm" enable="true" name="Scheduler">
  <property autoClean="off" broadcastExpireTime="1800" contextSetName="Authoring" cycleTime="600" display="false"> 
    <applicationType applicationName="default" maxNumofThreads="10"/> 
    <applicationType applicationName="broadcast" maxNumofThreads="10"/> 
    <applicationType applicationName="auction" maxNumofThreads="10"/> 
    <applicationType applicationName="inventory" maxNumofThreads="10"/> 
  </property>
</component>



 

Scheduler properties


The scheduler properties are defined in the <properties> element inside the scheduler component element. The attributes are:

autoclean

If set to "on", the SCHSTATUS entries that the scheduler creates will be deleted when the job completes. If set to "off" these entries will stay in the database until the CleanJob command is called. The default value is "off".

broadcastExpireTime

Sets the lifespan (in seconds) of a broadcast job.

contextSetName

The identifier of the business context set to use when running a scheduler job.

cycleTime

Sets the maximum time, in seconds, that the scheduler can idle before waking up to check if there are jobs waiting to run.

display

IBM Internal use only.

 

Scheduler thread groups


The scheduler thread groups are defined in the <applicationType> element. There are two attributes:

applicationName

The identifier this thread pool. When scheduler a job in the WebSphere Commerce Administration Console, this identifier will show up when you choose the application type.

maxNumofThreads

The maximum number of threads allowed for this thread pool.