atomic-queue
Advanced tools
Comparing version 5.0.2 to 5.0.3
10
index.js
@@ -25,3 +25,3 @@ var events = require('events') | ||
this.opts = opts | ||
this.pool = createPool(worker, opts) | ||
@@ -40,2 +40,6 @@ this.changes = createChangeDB({ | ||
this.stream._queue = this | ||
// | ||
// Make the reference to the pool available so we can access it via the stream | ||
// | ||
this.stream.pool = this.pool | ||
@@ -103,3 +107,3 @@ this.pool.on('start', function start (data, worker, change) { | ||
finish(self.inflight) | ||
function finish (inflight) { | ||
@@ -197,3 +201,3 @@ debug('finish?', [self.pending, self.latestChange, inflight.since]) | ||
} | ||
if (typeof startIndex === 'undefined') return {since: lastChange, jobs: {}} // all workers are done | ||
@@ -200,0 +204,0 @@ else inflight = inflight.slice(startIndex) |
{ | ||
"name": "atomic-queue", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "a crash friendly queue that persists queue state and can restart. uses a worker pool and has configurable concurrency", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,3 +12,3 @@ var test = require('tape') | ||
}) | ||
queue.write('a') | ||
@@ -15,0 +15,0 @@ queue.write('b') |
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
12910
9
304