Due to infinite loop in scheduled job system logs are getting created continuesly.

rpoola
Tera Contributor

Hi All,

I have placed on log message in while loop of scheduled job (On Demand). When I executed that scheduled job, in one case the condition failed and became infinite loop. From past two days logs are continuesly getting created. I have chosen the kill option for active transactions but it hasn't stopped the creation of logs. Can anybody help me out.

4 REPLIES 4

Shishir Srivast
Mega Sage

Can you try making the scheduled job active false.


Hi Srivastava,


Thank you for immediate response. I have made scheduled job active false and waited for some time and checked. Still logs getting created.


Can you please check if any other scheduled job causing issue? if you are sure that no other scheduled job is causing issue then may be you can try to flush the cache after making the scheduled job inactive. Is it your personal dev instance?



Flush Cache


Harsh Vardhan
Giga Patron

Hi Ravikiran,



i had faced similar kind of pain in my project.


if you will restart your node then it will be stop.


down your instance



How to stop an infinite loop


http://wiki.servicenow.com/index.php?title=Cancelling_a_Transaction#gsc.tab=0