Issue with GlideEventManager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023 11:38 AM
Hi experts,
I'm having some trouble with the GlideEventManager.
Looking at the documentation here it should be possible to pass a parameter like this:
GlideEventManager('my_event_queue').process(1);
However, when I pass any number (or any string, I have tried both already), the events never leave the queue. They stay there on Ready state. If I remove the number and leave it like below, all events are processed.
GlideEventManager('my_event_queue').process();
Shouldn't the first case be possible?
What I am trying to achieve seems somewhat simple. I have a bunch of events queued in a custom queue and want to process then sequentially, not at the same time. Documentation shows that process() receives an optional parameter for limit (Number), that limits the number of events claimed, but it doesn't seem to work.
Any insights are welcome.
Filipe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2023 10:07 AM
Having the exact same issue here. Let me know if you found a way out of it and I'll do the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2023 11:15 AM
I found an error on the System Logs. Also saw that the Documentation is for Utah only and I'm on Tokyo right now, so I'm guessing this is a new feature. I found a line on the Change Log but it does not specifically mention the limit parameter for the process method... But I know that the Class and methods were available in Tokyo since I'm on it 😅