Default timeout of an bussines rule

Johnny Schreine
Tera Contributor

Good evening everyone, I was developing a bussines rule, it ended up running for too long and i believe that in 5 minutes it was closed by the platform itself, I managed to get around this problem by putting my br in asynchronicity, however i was curious to know more about it.

where can i find this setting?
can your time be changed?

I tried to find it in quota rules and in system properties, however i had no luck in my searches, thanks.


 

4 REPLIES 4

Bert_c1
Kilo Patron

You can look at the Transaction Quota Rule named "UI Transactions" that is set to 298 seconds. Asynchronous BRs run as schedule jobs, not subject to that quota rule. Seems your BR logic needs some changes so it doesn't cause a performance problem.

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @Johnny Schreine 

as Bert mentioned, the time out settings are defined under Transaction quota rules.

It's not the best practice to increase the Transaction quota as it may Impact the system performance.

But there's a workaround for this, you can use OOB script include called ScheduleOnce that would let us schedule the execution of our script in an asynchronous way.

var so = new Scheduleonce();

so.script = script; //BR script 

so.setAsseconds(400); //setting extra time for the specific BR

so.schedule();

)) (current, previous);

 

refer this thread where this method is explained clearly:

https://www.servicenow.com/community/in-other-news/avoiding-time-consuming-transactions-being-automa...

also refer:

https://docs.servicenow.com/en-US/bundle/utah-platform-administration/page/administer/platform-perfo....

please mark the answer as correct and helpful based on Impact.

 

Kind Regards,

Ravi Chandra

 

 

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @Johnny Schreine 

Greetings!

Any feedback on my reply? were you able to do this?

Help others to find a correct solution by marking the appropriate response as correct answer and helpful!!

 

Kind Regards,

Ravi Chandra.

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @Johnny Schreine 

Greetings!

Any feedback on my reply? were you able to do this?

Help others to find a correct solution by marking the appropriate response as correct answer and helpful!!

 

Kind Regards,

Ravi Chandra.