Hey Everyone
i have a question i created a schdeuled script but i want it to run every 5 min is that possible or even less
Thanks
n
Nathan L
04/18/2023, 2:01 PM
Not without some sort of external job. I've seen before where people will put the script call into a suitelet and have a cronjob scheduled to call the suitelet every x number of minutes. But even then, its just putting the script into a queue. So theres not a good way to guarantee its going to run exactly when you want.
@Nathan L i just tried that haha thank you so much it working now
🥳 1
s
Shawn Talbert
04/18/2023, 2:56 PM
I wouldn't do this, but at least it's better than some horrendous alternatives I've seen e.g. a tight spinning loop checking Date() until the desired time elapses.
🤢 1
🙌 1
Shawn Talbert
04/18/2023, 3:01 PM
often, the desire to run a scheduled script so often is a design smell suggesting perhaps a different approach is in order.