@platformatic/runtime 2.75.1 → 2.75.2
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/config.d.ts +1 -1
- package/lib/runtime.js +13 -12
- package/package.json +15 -15
- package/schema.json +1 -1
package/config.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* and run json-schema-to-typescript to regenerate this file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
export type
|
|
8
|
+
export type HttpsSchemasPlatformaticDevPlatformaticRuntime2752Json = {
|
|
9
9
|
[k: string]: unknown;
|
|
10
10
|
} & {
|
|
11
11
|
$schema?: string;
|
package/lib/runtime.js
CHANGED
|
@@ -1423,7 +1423,7 @@ class Runtime extends EventEmitter {
|
|
|
1423
1423
|
return health
|
|
1424
1424
|
}
|
|
1425
1425
|
|
|
1426
|
-
#setupHealthCheck (config, serviceConfig, workersCount, id, index, worker, errorLabel
|
|
1426
|
+
#setupHealthCheck (config, serviceConfig, workersCount, id, index, worker, errorLabel) {
|
|
1427
1427
|
// Clear the timeout when exiting
|
|
1428
1428
|
worker.on('exit', () => clearTimeout(worker[kHealthCheckTimer]))
|
|
1429
1429
|
|
|
@@ -1496,7 +1496,7 @@ class Runtime extends EventEmitter {
|
|
|
1496
1496
|
} else {
|
|
1497
1497
|
worker[kHealthCheckTimer].refresh()
|
|
1498
1498
|
}
|
|
1499
|
-
},
|
|
1499
|
+
}, interval)
|
|
1500
1500
|
}
|
|
1501
1501
|
|
|
1502
1502
|
async #startWorker (
|
|
@@ -1564,16 +1564,17 @@ class Runtime extends EventEmitter {
|
|
|
1564
1564
|
if (enabled && config.restartOnError > 0) {
|
|
1565
1565
|
// if gracePeriod is 0, it will be set to 1 to start health checks immediately
|
|
1566
1566
|
// however, the health event will start when the worker is started
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1567
|
+
setTimeout(() => {
|
|
1568
|
+
this.#setupHealthCheck(
|
|
1569
|
+
config,
|
|
1570
|
+
serviceConfig,
|
|
1571
|
+
workersCount,
|
|
1572
|
+
id,
|
|
1573
|
+
index,
|
|
1574
|
+
worker,
|
|
1575
|
+
label
|
|
1576
|
+
)
|
|
1577
|
+
}, gracePeriod > 0 ? gracePeriod : 1).unref()
|
|
1577
1578
|
}
|
|
1578
1579
|
} catch (error) {
|
|
1579
1580
|
// TODO: handle port allocation error here
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/runtime",
|
|
3
|
-
"version": "2.75.
|
|
3
|
+
"version": "2.75.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"typescript": "^5.5.4",
|
|
38
38
|
"undici-oidc-interceptor": "^0.5.0",
|
|
39
39
|
"why-is-node-running": "^2.2.2",
|
|
40
|
-
"@platformatic/composer": "2.75.
|
|
41
|
-
"@platformatic/
|
|
42
|
-
"@platformatic/
|
|
43
|
-
"@platformatic/
|
|
44
|
-
"@platformatic/
|
|
45
|
-
"@platformatic/sql-mapper": "2.75.
|
|
40
|
+
"@platformatic/composer": "2.75.2",
|
|
41
|
+
"@platformatic/db": "2.75.2",
|
|
42
|
+
"@platformatic/node": "2.75.2",
|
|
43
|
+
"@platformatic/service": "2.75.2",
|
|
44
|
+
"@platformatic/sql-graphql": "2.75.2",
|
|
45
|
+
"@platformatic/sql-mapper": "2.75.2"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@fastify/accepts": "^5.0.0",
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
"undici": "^7.0.0",
|
|
77
77
|
"undici-thread-interceptor": "^0.14.0",
|
|
78
78
|
"ws": "^8.16.0",
|
|
79
|
-
"@platformatic/basic": "2.75.
|
|
80
|
-
"@platformatic/generators": "2.75.
|
|
81
|
-
"@platformatic/
|
|
82
|
-
"@platformatic/
|
|
83
|
-
"@platformatic/
|
|
84
|
-
"@platformatic/
|
|
85
|
-
"@platformatic/
|
|
86
|
-
"@platformatic/
|
|
79
|
+
"@platformatic/basic": "2.75.2",
|
|
80
|
+
"@platformatic/generators": "2.75.2",
|
|
81
|
+
"@platformatic/config": "2.75.2",
|
|
82
|
+
"@platformatic/metrics": "2.75.2",
|
|
83
|
+
"@platformatic/itc": "2.75.2",
|
|
84
|
+
"@platformatic/telemetry": "2.75.2",
|
|
85
|
+
"@platformatic/ts-compiler": "2.75.2",
|
|
86
|
+
"@platformatic/utils": "2.75.2"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|
|
89
89
|
"test": "pnpm run lint && borp --concurrency=1 --timeout=1200000 && tsd",
|
package/schema.json
CHANGED