- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2016 07:43 PM
Hi fellow developer types!
I'm in a situation where I have a script action that is taking more time to process than the number of events coming in. This leads to the event queue getting totally backed up as more and more and more stuff comes in but each one takes "long" to process (~20 seconds). So, I'm trying to create 5 different event queues by populating the "Queue" field in the event registry. I did some digging and I think the Script Actions without a queue specified are processed by the "events process" Schedule Item ("sys_trigger" - System Scheduler > Scheduled Jobs... yea, different scheduled jobs than the "other" scheduled jobs").
This "events process" schedule item has a "Job Context" with something akin to Javascript:
I thought I saw on a webex that if you pass a parameter to this for example as gs.eventsProcess( 'my_queue_name' ) it would process the events in the event queue with a queue of 'my_queue_name'. However, that does not seem to be the case. In the new Schedule Item I created, I see it firing the "next action" field, but my events are not being processed
Anyone know how I can get the system to process my events with a queue populated of my choosing?
Thanks!!
--- Travis
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2016 10:03 AM
Hello again,
I tracked it down. The gs.eventsProcess( 'queue_name' ) wasn't processing the events, but I found another Scheduled Job that was using a different function:
fcScriptName=javascript\:GlideEventManager('queue_name').process();
And this worked great. I'm wondering if the scope of my events had something todo with it. I'm building this inside an app, so my scope is not global. Who knows. Anyway, that works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2016 09:38 AM
Doh, that would have been helpful information. I am on Fuji, patch 7.