Jobs

A job is a WebSphere Commerce command that is scheduled to run on behalf of a site or store at a specified time or interval. The three types of jobs are: regular jobs, store level jobs, and broadcast jobs.

Each job runs as a separate thread, and multiple jobs can be scheduled to run simultaneously. A fixed number of threads are assigned to each application group. To avoid overloading the default application pool, the Schedule Job window allows for application partitioning. The application type is entered into the SCHCONFIG table with the number of threads assigned to run the job.

The Schedule Job window can also be used to specify the start time for a job. Job tracking information, including start time, end time, and status is maintained in the SCHSTATUS table and displayed on the Scheduler Status Display page.

Note: A warning is printed to the SystemOut.log if a thread runs long. For example,

If a thread is active for more than 30 minutes, WebSphere Commerce considers it hung. We can ignore these warnings if some scheduler jobs are running on these threads and are expected to run for more than 30 minutes. If necessary, configure WebSphere Application Server's hang detection policy to more appropriate values.

When jobs that are not expected to run for more than 30 minutes, but the warning statement still appears in the SystemOut.log file, further investigation might be required. Typically, the trace specification, com.ibm.websphere.commerce.WC_SERVER=all, can be used to determine what job was run on this thread ID, for example, 00000029.

The following table shows the jobs that are scheduled to run on the scheduler by default.

Default scheduler jobs
Job Description For more information
ActivityCleanUp Cleans up the activities data stored in the CTXMGMT and CTXDATA tables. ActivityCleanUp URL
CleanECEvent Deletes up to the specified maximum number of business events from the BUSEVENT database table. These business events are either in purge state or older than the specified expiration time (by default, 30 minutes). Database records for the business events are deleted and committed in batches of 5000. The default maximum number of business events is 500, 000. By default, this scheduled job runs every 30 minutes. Scheduling the CleanECEvent job
DynaCacheInvalidation Invalidates entries in the WebSphere Application Server dynamic cache. DynaCacheInvalidation URL
EvaluateRuleBasedCategories Reapplies the rules for rule-based sales categories on a configured time interval. Creating the rule-based sales category evaluation scheduled job
EventProcessor Processes events in the -10 state. Analytics events are sent to an external analytics system and then updated to the -20 state and non-analytics events are updated to the -20 state. By default, this scheduled job runs every hour. Scheduling the EventProcessor job
RaiseECEvent Processes pending base ECEvents. See RaiseECEvent URL
RefreshLocalRegistry Refreshes the local registry.
SaveMarketingStatistics Saves accumulated statistics to the database. Scheduling the SaveMarketingStatistics job
SchedCoupon Processes current coupons to check for expiration. SchedCoupon URL
SendMarketingTriggers Schedules the sending of marketing email activities. This job also processes triggers in dialog activities and generates top-browsed and best-seller lists in web activities. Scheduling the SendMarketingTriggers job
SendTransactedMsg Sends all outstanding messages using the Send Transacted Sending services. SendTransactedMsg URL
TicklerUnlockMonitor Unlocks ticklers that are locked for more than a specified time. TicklerUnlockMonitor URL
UpdateSearchIndex Synchronizes quick publish catalog changes with the search index in production. Creating and scheduling the UpdateSearchIndex job


Related concepts
Scheduler configuration parameters


Related tasks
Scheduling a site-level job
Maintaining the scheduler
Scheduling marketing jobs


Related reference
Scheduled job states