better-queue
Advanced tools
Comparing version 3.7.19 to 3.7.20
@@ -501,3 +501,10 @@ var uuid = require('node-uuid'); | ||
var self = this; | ||
if (self.length >= self.batchSize) { | ||
if (self.batchSize === 1 && self.batchDelay > 0) { | ||
if (!self._batchTimeoutId) { | ||
self._batchTimeoutId = setTimeout(function () { | ||
self._batchTimeoutId = null; | ||
self._processNextIfAllowed(); | ||
}, self.batchDelay) | ||
} | ||
} else if (self.length >= self.batchSize) { | ||
if (self._batchTimeoutId) { | ||
@@ -504,0 +511,0 @@ clearTimeout(self._batchTimeoutId); |
{ | ||
"name": "better-queue", | ||
"version": "3.7.19", | ||
"version": "3.7.20", | ||
"description": "Better Queue for NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "lib/queue.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91994
2401