Script Actions after Events: can they be triggered once for many of the same event?

tahnalos
Kilo Sage

We have a script action that is triggered by events.  This script action runs against a single table in the CMDB, usually around 10000 in an hour.  Some entries in this table can be affected by the script action up to 100 times in a single instance.  Obviously, we want to reduce the load on the table, so wondering if events can be set up in such a way so that we can reuse the same event?  Like instead of running the script action 100 times, is it possible to set it up so that it runs once or twice?

2 REPLIES 2

JC Icaro1
Kilo Guru

I'm not sure what you're trying to do but all a Script Action does is that it executes when the related event is triggered. You'll need to design it so that the event will be triggered "once or twice" as required and then the script action will then contain the script logic that's required to process whichever records are required.

shloke04
Kilo Patron

Hi @tahnalos 

Script action will not run automatically on it's own 100 times. Issue is with the script or logic which has been written which might be running 100 times where you may be utilizing an event which is causing the Script action also to run "X" number of times.

So my suggestion here would be to look at the logic through which you are firing your event here.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke