logo

NJP

Diagnosing and remedying stuck event processes

Import · Apr 15, 2015 · article
  1. Go to stats.do of that particular node and check if the events process is stuck:
    1. In the stats.do, open the link for events process worker page. This displays the stacktrace for eventprocess.java.
  2. If your scheduled event process is stuck, you should kill the event process in the Claimed By node:
    1. Search for All Active Transaction in the left navigation filter.
    2. Select the stuck events process row and from the Actions on the Selected Rows drop-down.
    3. Select Kill.

You can analyze the worker stack from the schedule events process to identify how the events got stuck. Below is an example of the stack trace where an event is stuck because of a business rule:

image

To fix an event stuck on the oldest unprocessed event:

  1. In the navigation filter, enter sysevent.list to display all events.
  2. Filter by column [Processed] [is] [empty]. This lists all the unprocessed events.
    image
  3. Sort the events by the oldest date/time at the top.
  4. Mark the State field of the oldest event as Error. This helps process the other unprocessed events.
  5. After this is fixed, change the State field of the oldest event to ready.

image

Show the correct time on a scheduled event process:

If the scheduled events process shows the past date/time, this indicates errors in the events process schedule.

  1. In the navigation filter, enter sys_trigger.list to view all schedules.
  2. Search for events process.
  3. Check if the Next action field is showing as future date/time and the State field is not queued or error.
    image
  4. If the next action date/time is showing the past date/time and error as seen above, click Execute Now to execute the event. This should execute the event and put the future date/time in the Next action field.
  5. If the State field is showing as queued or error, change the field to ready and Save the record.

Working with notifications and your scheduled events can be tricky. My best advice to share with you regarding preventing events from getting stuck is to check back regularly to see if events are getting processed. If you have checked your diagnostics page and your list of system events, check the knowledge base and the community to see if others have experienced a similar situation and have found a way to work around it.

View original source

https://www.servicenow.com/community/developer-blog/diagnosing-and-remedying-stuck-event-processes/ba-p/2289983