How to cancel events created via eventQueue?

Nisar2
Mega Guru

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.

Nisar2_0-1723206964689.png

 

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?

1 REPLY 1

Satishkumar B
Giga Sage
Giga Sage

@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.

…………………………………………........................................................................................