Feel free to berate me for not doing enough resear...
# suitescript
c
Feel free to berate me for not doing enough research first. Busy day. I have a scheduled script that's triggered by submitting a task from a UE script. My problem is that the user can be a bit fast, and cause a second task to be sent while the script is still in progress. What's the workaround for this?
b
what do you want to happen?
c
What do you mean by "be a bit fast"? Updating the record again before the UE is done creating the task, so you get 2?
c
Is there a way to queue the second task up rather than erroring out?
b
make a second deployment
schedule that one instead, or leave out the deploymentId parameter and let netsuite decide which one to use
c
I was hoping there was a better answer, but i've had to resort to something similar before. Leaving out the deployment parameter isn't something I considered, thanks for that.
b
whatever netsuite uses to determine if the script is already in the processor queue isnt thread safe
it can still end up choosing a queued deployment at high levels of concurrency
c
I appreciate the info