@vtex/api 6.45.14 → 6.45.16-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -2
- package/lib/service/master.js +0 -4
- package/lib/service/worker/listeners.js +0 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [6.45.16-beta] - 2023-02-13
|
|
11
|
+
|
|
12
|
+
## [6.45.15] - 2023-02-01
|
|
13
|
+
### Changed
|
|
14
|
+
- Removed unnecessary worker signal logs
|
|
15
|
+
|
|
10
16
|
## [6.45.14] - 2023-02-01
|
|
11
17
|
|
|
12
18
|
### Added
|
|
@@ -1753,6 +1759,8 @@ instead
|
|
|
1753
1759
|
- `HttpClient` now adds `'Accept-Encoding': 'gzip'` header by default.
|
|
1754
1760
|
|
|
1755
1761
|
|
|
1756
|
-
[Unreleased]: https://github.com/vtex/node-vtex-api/compare/v6.45.
|
|
1762
|
+
[Unreleased]: https://github.com/vtex/node-vtex-api/compare/v6.45.16-beta...HEAD
|
|
1763
|
+
[6.45.16-beta]: https://github.com/vtex/node-vtex-api/compare/v6.45.15...v6.45.16-beta
|
|
1764
|
+
[6.45.15]: https://github.com/vtex/node-vtex-api/compare/v6.45.14...v6.45.15
|
|
1757
1765
|
[6.45.14]: https://github.com/vtex/node-vtex-api/compare/v6.45.13...v6.45.14
|
|
1758
|
-
[6.45.13]: https://github.com/vtex/node-vtex-api/compare/v6.45.12...v6.45.13
|
|
1766
|
+
[6.45.13]: https://github.com/vtex/node-vtex-api/compare/v6.45.12...v6.45.13
|
package/lib/service/master.js
CHANGED
|
@@ -52,10 +52,6 @@ const onOnline = (worker) => {
|
|
|
52
52
|
const GRACEFULLY_SHUTDOWN_TIMEOUT_S = 30;
|
|
53
53
|
const SIGINT_TIMEOUT_S = 1;
|
|
54
54
|
const handleSignal = (timeout) => (signal) => {
|
|
55
|
-
// Log the Master Process received a signal
|
|
56
|
-
const message = `Master process ${process.pid} received signal ${signal}`;
|
|
57
|
-
console.warn(message);
|
|
58
|
-
listeners_1.logger.warn({ message, signal });
|
|
59
55
|
// For each worker, let's try to kill it gracefully
|
|
60
56
|
Object.values(cluster_1.default.workers).forEach((worker) => worker === null || worker === void 0 ? void 0 : worker.kill(signal));
|
|
61
57
|
// Let's raise the flag to kill the master process after all workers have died
|
|
@@ -5,11 +5,7 @@ const RequestCancelledError_1 = require("../../errors/RequestCancelledError");
|
|
|
5
5
|
const logger_1 = require("../logger");
|
|
6
6
|
exports.logger = new logger_1.Logger({ account: 'unhandled', workspace: 'unhandled', requestId: 'unhandled', operationId: 'unhandled', production: process.env.VTEX_PRODUCTION === 'true' });
|
|
7
7
|
let watched;
|
|
8
|
-
// Remove the any typings once we move to nodejs 10.x
|
|
9
8
|
const handleSignal = signal => {
|
|
10
|
-
const message = `Worker ${process.pid} received signal ${signal}`;
|
|
11
|
-
console.warn(message);
|
|
12
|
-
exports.logger.warn({ message, signal });
|
|
13
9
|
process.exit(os_1.constants.signals[signal]);
|
|
14
10
|
};
|
|
15
11
|
exports.addProcessListeners = () => {
|