How to cancel events created via eventQueue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 05:36 AM
I've about 50k events that are stuck in "Ready" state but not progressing. I'm thinking of cancelling them so that future events can be processed.
After searching on the topic, I found that that job responsible for processing events is "events process 0" and I can see 3 of them (2 children, 1 parent).
The child jobs appear to be running every now and then but the parent job is also stuck at "Ready" state. As per suggestions, I also updated the "Next Run" to future date (5-10 mins from current time) and once that time has passed, it seems to have had no effect on the parent job.
So I was wondering what would be the recommended way of cancelling events in bulk? I don't assume doing it via script is a good practice?
Is there an out of the box way of cancelling those queued events?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 05:44 AM
@Nisar2 Check if this helps you:
https://www.servicenow.com/community/developer-forum/delete-scheduled-events/m-p/1985469
…………………………………………........................................................................................
Mark it helpful 👍and Accept Solution ✅!! If this helps you to understand.
…………………………………………........................................................................................