scheduled-tasksnetsuitesuitescriptsuitescript2.0

Netsuite Scheduled script stuck on pending status


I have created scheduled script to generate and print pdf from wave record. When multiple roles, multiple users prints multiple waves prints simultaneously, some prints process simultaneously as 10 deployments created, but some stuck on pending status until previous prints completes the processing. Is there any solution? I will appreciate your help. Thanks in advance


Solution

  • Pending status means the job is awaiting processing slots in the scheduled jobs queue. This queue includes jobs from Scheduled Scripts, Map/Reduce Scripts, and I think scheduled workflows also. From all these jobs, there is a limit to how many can be processed simultaneously. That limit is set by your licensing - check with your NetSuite account manager what it is for your account.

    When there are more jobs in the queue than can be processed simultaneously, the remaining jobs will be pending until the first jobs finish. As each job completes, another can start. For something like generating and printing a PDF I would expect that to happen pretty quickly.

    To answer the question as to whether there's a solution; the only direct solution would be to purchase additional SuiteCloud Processing licenses to allow more simultaneous jobs to be processed. Whether that's really needed for your use case is another question.