Scripts: Sleep function in a random way / Função sleep randômica
Import
·
Nov 29, 2018
·
article
var intDelay = parseInt(Math.random()*10000,10);
gs.sleep(intDelay)
"Avoid using gs.sleep on any of the workflow activities. The gs.sleep does not release session; the workflow will hold on to the thread; the instance will run out of worker threads for other jobs. Use a Workflow Timer activity instead of gs.sleep." Best Practices
Update set Planejando e executando mudanças no ambiente.
Was useful, please leave your feedback!
View original source
https://www.servicenow.com/community/itsm-articles/scripts-sleep-function-in-a-random-way-fun%C3%A7%C3%A3o-sleep-rand%C3%B4mica/ta-p/2316982
