Hey Everyone i have a question i created a schdeu...
# suitescript
l
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
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.
l
@Nathan L i just tried that haha thank you so much it working now
🥳 1
s
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
often, the desire to run a scheduled script so often is a design smell suggesting perhaps a different approach is in order.