The Toolbox runs by means of scheduled jobs at intervals determined by a specific custom setting value (swscore__Rule_Engine_Batch_Delay__c). The scheduling is made of 2 components:

  • SalesWings Toolbox Engine : Watcher: it’s the job that will be scheduled when activating the scheduling from the Rules Center page. The role of the watcher is the one of ensuring that the engine runs regularly even in circumstances where it may fail. When first started the Watcher will schedule the first execution of the Runner. If the runner fails to enqueue itself the Watcher will eventually step in and schedule another runner

  • SalesWings Toolbox Engine : Runner: it’s the job that actually processes the rules. After processing the rules the runner schedules itself for the next execution at the given interval.

In the SalesWings Rules Center, you will be able to check the current state of the job, as observed in the Scheduled Job page.

The job state is managed by the system. Possible values are:

  • WAITING—The job is waiting for execution.

  • ACQUIRED—The job has been picked up by the system and is about to execute.

  • EXECUTING—The job is executing.

  • COMPLETE—The trigger has fired and is not scheduled to fire again.

  • ERROR—The trigger definition has an error.

  • DELETED—The job has been deleted.

  • PAUSED—A job can have this state during patch and major releases. After the release has finished, the job state is automatically set to WAITING or another state.

  • BLOCKED—Execution of a second instance of the job is attempted while one instance is running. This state lasts until the first job instance is completed.

  • PAUSED_BLOCKED—A job has this state due to a release occurring. When the release has finished and no other instance of the job is running, the job’s status is set to another state.

Don't hesitate to schedule a Training Call with us!

Did this answer your question?