Comparing version 3.22.12 to 3.23.0
@@ -0,1 +1,8 @@ | ||
# [3.23.0](https://github.com/OptimalBits/bull/compare/v3.22.12...v3.23.0) (2021-07-13) | ||
### Features | ||
* support job.update function in sandboxed processors ([ff79fb4](https://github.com/OptimalBits/bull/commit/ff79fb494ea3e123256b35d18b46b24fbb9b8365)), closes [#1279](https://github.com/OptimalBits/bull/issues/1279) [#1608](https://github.com/OptimalBits/bull/issues/1608) [#1056](https://github.com/OptimalBits/bull/issues/1056) | ||
## [3.22.12](https://github.com/OptimalBits/bull/compare/v3.22.11...v3.22.12) (2021-07-13) | ||
@@ -2,0 +9,0 @@ |
@@ -176,3 +176,13 @@ /** | ||
}; | ||
/* | ||
* Emulate the real job `update` function. | ||
*/ | ||
job.update = function(data) { | ||
process.send({ | ||
cmd: 'update', | ||
value: data | ||
}); | ||
job.data = data; | ||
}; | ||
return job; | ||
} |
@@ -39,2 +39,5 @@ 'use strict'; | ||
break; | ||
case 'update': | ||
job.update(msg.value); | ||
break; | ||
} | ||
@@ -41,0 +44,0 @@ }; |
{ | ||
"name": "bull", | ||
"version": "3.22.12", | ||
"version": "3.23.0", | ||
"description": "Job manager", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
168462
3229