Server: wait pod removal when finishing a request
This commit is contained in:
parent
4648530318
commit
c2ee5ce83a
1 changed files with 4 additions and 4 deletions
|
@ -185,14 +185,14 @@ function makeRequests () {
|
||||||
if (success === true) {
|
if (success === true) {
|
||||||
logger.debug('Removing requests for %s pod.', toPodId, { requestsIds: requestToMake.ids })
|
logger.debug('Removing requests for %s pod.', toPodId, { requestsIds: requestToMake.ids })
|
||||||
|
|
||||||
// Remove the pod id of these request ids
|
|
||||||
removePodOf.call(self, requestToMake.ids, toPodId)
|
|
||||||
goodPods.push(toPodId)
|
goodPods.push(toPodId)
|
||||||
|
|
||||||
|
// Remove the pod id of these request ids
|
||||||
|
removePodOf.call(self, requestToMake.ids, toPodId, callbackEach)
|
||||||
} else {
|
} else {
|
||||||
badPods.push(toPodId)
|
badPods.push(toPodId)
|
||||||
}
|
|
||||||
|
|
||||||
callbackEach()
|
callbackEach()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}, function () {
|
}, function () {
|
||||||
|
|
Loading…
Reference in a new issue