Hi, does anyone know how to resolve "No available ...
# suitescript
j
Hi, does anyone know how to resolve "No available idle Script Deployments available for Script" ?
b
if you are trying to submit a task, the error probably means that the script you are trying to schedule has no available deployments
general solutions are to make more deployments, or make a new one to schedule
j
Do you mean the current script deployment is in-progress or in-queue? because there is a deployment record currently setup on the script but sometimes we encountered this error when trying to submit a request on a map/reduce script
b
there is no real difference between in progress or in queue for this error\
you cant submit a task for a deployment that is busy
j
so what would be the best option to resolve the issue, create new script deployments?
b
depends on the concurrency level
generally you make more deployments and submit a task without setting the deployment id parameter
that lets netsuite choose an open deployment
however netsuite chooses that open deployment in a way that is not thread safe, so occasionally you may still get that error
usually you can get away with submitting the task in a try catch loop
if you have really high concurrency, you can make your own script deployment if you dont want to risk the try catch loop
👍 1
j
thank you, will try this out.