Kris Jones
05/07/2019, 4:59 PMN/task
, but am running into the FAILED_TO_SUBMIT_JOB_REQUEST_1
error.
I was advised last time to remove the scriptDeployment
id from my task.create
option object, so what I have looks a little like:
const scriptTask = task.create({taskType: task.TaskType.SCHEDULED_SCRIPT});
scriptTask.scriptId = SCHEDULED_SCRIPT_HELPER_SCRIPT_ID;
scriptTask.params = {};
scriptTask.params[SCHEDULED_SCRIPT_HELPER_PARAM_ID] = JSON.stringify(context);
scriptTask.submit();
with the understanding that NS would identify the script, select an unused deployment id, and use any unused deployment to run the script. That way, I could create ~10 deployments for a script for example, and NS would choose one that's not being used. I've looked through these script deployments and the majority of executions are on the first deployment, some on the 2nd deployment, etc. etc. The highest number of deployment that's ever been used is the 6th deployment. However... I'm still getting FAILED_TO_SUBMIT_JOB_REQUEST_1
, even though there are unused deployments available.
Is there some other part of the equation I'm not considering that would cause a job to fail to be submitted? Also, is there a better way to handle checking if a job is able to be submitting it without actually submitting it (e.g., try/catch
?).
Thanks for any help šbattk
05/07/2019, 5:08 PMbattk
05/07/2019, 5:08 PMKris Jones
05/07/2019, 5:09 PMbattk
05/07/2019, 5:11 PMKris Jones
05/07/2019, 5:11 PM":"Failed to submit job request: INQUEUE."
battk
05/07/2019, 5:13 PMbattk
05/07/2019, 5:16 PMbattk
05/07/2019, 5:16 PMKris Jones
05/07/2019, 5:36 PMec
05/07/2019, 8:08 PMKris Jones
05/07/2019, 8:08 PMmichoel
05/07/2019, 8:56 PMKris Jones
05/07/2019, 8:57 PMKris Jones
05/07/2019, 8:59 PMec
05/07/2019, 9:01 PMbattk
05/07/2019, 9:03 PMKris Jones
05/07/2019, 9:07 PMbattk
05/07/2019, 9:08 PMKris Jones
05/07/2019, 9:19 PMA scheduled script can be submitted for processing only if there is no unfinished scheduled script task for the same script ID and script deployment ID.
From the SS docs, perhaps it's just not a good idea to leave the scriptDeployment
parameter blank and assume NS will figure it out? I wonder if creating a new deployment for each task fire then deleting the deployment at the end of the fired scheduled script would run without this issuemichoel
05/07/2019, 9:25 PMKris Jones
05/07/2019, 9:26 PMec
05/07/2019, 9:34 PMKris Jones
05/07/2019, 9:38 PMKris Jones
05/07/2019, 9:39 PM