Comparing version 2.6.4 to 2.6.5
@@ -5,2 +5,7 @@ # Changelog | ||
## [2.6.5][] - 2021-09-30 | ||
- Fix: do not release thread if invoke is not exclusive | ||
- Fix: write `task.id` to serialized task `.json` file | ||
## [2.6.4][] - 2021-09-23 | ||
@@ -229,3 +234,4 @@ | ||
[unreleased]: https://github.com/metarhia/impress/compare/v2.6.4...HEAD | ||
[unreleased]: https://github.com/metarhia/impress/compare/v2.6.5...HEAD | ||
[2.6.5]: https://github.com/metarhia/impress/compare/v2.6.4...v2.6.5 | ||
[2.6.4]: https://github.com/metarhia/impress/compare/v2.6.3...v2.6.4 | ||
@@ -232,0 +238,0 @@ [2.6.3]: https://github.com/metarhia/impress/compare/v2.6.2...v2.6.3 |
@@ -111,3 +111,3 @@ 'use strict'; | ||
if (name === 'done') { | ||
pool.release(worker); | ||
if (exclusive) pool.release(worker); | ||
return; | ||
@@ -114,0 +114,0 @@ } |
@@ -215,3 +215,3 @@ 'use strict'; | ||
if (parentPort) { | ||
parentPort.on('message', async ({ type, name, data, port }) => { | ||
parentPort.on('message', async ({ type, name, exclusive, data, port }) => { | ||
if (type !== 'invoke' || name !== 'request') return; | ||
@@ -231,3 +231,3 @@ const { method, args } = data; | ||
} finally { | ||
parentPort.postMessage({ type: 'invoke', name: 'done' }); | ||
parentPort.postMessage({ type: 'invoke', name: 'done', exclusive }); | ||
} | ||
@@ -234,0 +234,0 @@ }); |
@@ -83,2 +83,3 @@ 'use strict'; | ||
const id = metautil.nowDate() + '-id-' + this.nextId.toString(); | ||
task.id = id; | ||
this.nextId++; | ||
@@ -85,0 +86,0 @@ const started = this.restore({ id, ...task }); |
{ | ||
"name": "impress", | ||
"version": "2.6.4", | ||
"version": "2.6.5", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Enterprise application server for Node.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
61087
1374