Comparing version 0.3.1 to 0.3.2
@@ -54,5 +54,9 @@ 'use strict'; | ||
}); | ||
boss.on('archived', function (count) { | ||
return _this.emit('archived', count); | ||
}); | ||
// manager makes sure workers aren't taking too long to finish their jobs | ||
var manager = new Manager(config); | ||
_this.manager = manager; | ||
manager.on('error', function (error) { | ||
@@ -64,3 +68,5 @@ return _this.emit('error', error); | ||
}); | ||
_this.manager = manager; | ||
manager.on('expired', function (count) { | ||
return _this.emit('expired', count); | ||
}); | ||
return _this; | ||
@@ -67,0 +73,0 @@ } |
{ | ||
"name": "pg-boss", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Queueing jobs in Node.js using PostgreSQL like a boss", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.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
45262
704