Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Interrupting a job scheduler

Updated on August 25, 2021

If you want to attempt to fix a running job scheduler without restarting the node, you can interrupt the job scheduler on the Requestors landing page. Interrupting a job scheduler is useful when the job scheduler stops working correctly during processing and cannot complete its run.

For example, a job scheduler runs an activity that contains a call to an external service (such as a REST endpoint, database, or email server). If that interaction with the external service stops (due to communication issues or problems with that resource), the job scheduler might not be able to finish, nor can it restart processing the activity again.

Note: Interrupting the job scheduler is only a temporary solution and does not address the root cause.

In the example above, you interrupt the job scheduler and introduce timeouts to the job scheduler activity logic.

  1. Identify the job schedulers that are running and determine which job scheduler you want to interrupt.
  2. On the rightmost end of the JOBSCHEDULER_THREAD row, select the More icon (⋮), and then select Interrupt.
Result: If the job scheduler is successfully interrupted, a SUCCESS message is displayed.

Note:

The Interrupt action attempts to interrupt the current activity of the Java thread. Depending on the activity implementation and depending on what the thread is doing when the interrupt attempt occurs, one of the following might happen:

  • The job scheduler reacts to the interrupt attempt. The job scheduler continues with its logic or finishes immediately. The result depends on the implementation of the job scheduler activity. You do not need to restart the job scheduler; the job scheduler runs again according to its schedule (next run time).
  • The job scheduler does not react to the interruption attempt. You need to restart the node where the stuck Job Scheduler job is running.
  • Previous topic Determining which job schedulers are running
  • Next topic Recovering from a high availability system crash

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us