Scheduler

The Scheduler is a background server that schedules and launches jobs, both at the site and store levels. From the Configuration menu of the Administration Console, the scheduler allows Site Administrators to schedule and configure jobs.

The scheduler polls the SCHACTIVE table to find jobs scheduled to run. The following list describes the possible entries for the STATE column:

W

Indicates that the job is waiting for execution, if necessary.

I

Indicates that the job is currently inactive.

IF

Indicates that the job has run and failed. The instance will rerun the job.

For each entry where the state is W and the preferred start time is less than or equal to the current time, the scheduler gets the job's configuration information from the SCHCONFIG table. If the INTERFACENAME field is defined, the scheduler gets the implementation of the business logic task command and if that implementation uses the business logic interface, the scheduler runs the business logic task command. If no exceptions are thrown, the state is changed to I.

When the scheduler finds entries in the SCHACTIVE table where the state is I or IF and the preferred start time is equal to or less than the current time, it executes the job.

The scheduler is scalable across one or more threads, running on one or more machines. Multiple commerce servers or clones can connect to the same database. When a job is added to the SCHCONFIG table, the job can be scheduled to run on any of the WebSphere Commerce Servers or clones.

 

Related Concepts


Jobs

 

Related tasks


Maintaining the scheduler
Scheduling a site-level job
Scheduling a store-level job
Registering commands to use as a store level job
Configure the scheduler to run a job on an instance or cluster member

 

Related Reference


Scheduler configuration parameters
Scheduled job states