Simon
09/13/2021, 9:30 PMDavid B
09/13/2021, 9:39 PMdeploymentId
will mean NS will choose an available deployment for you.
Also IIRC, if all deployments are busy when you call Task.submit()
it will queue your task until there's a free deploymentDavid B
09/13/2021, 9:42 PMSimon
09/13/2021, 11:00 PMmichoel
09/13/2021, 11:45 PMDavid B
09/14/2021, 1:25 AMAdditionally, note that a map/reduce script can be submitted for processing only if there is no unfinished map/reduce script task for the same script ID and script deployment ID. For this reason, if a map/reduce script resubmits itself, the actual resubmit does not occur until the current execution completes. This delay is necessary to avoid the existence of two unfinished tasks for the same deployment of the same script. Therefore, if a map/reduce script uses the submit() method to resubmit itself, then at runtime, no task ID is returned when the map/reduce script is submitted
michoel
09/14/2021, 1:27 AMmichoel
09/14/2021, 1:29 AMDavid B
09/14/2021, 1:43 AMTask.submit()
with no available deployments.ehcanadian
09/14/2021, 2:25 AMMAP_REDUCE_ALREADY_RUNNING
errorDavid B
09/14/2021, 3:10 AM