@wildo-ai/saas-minions-lib 1.1.3 → 1.1.4
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/dist/esm/base-classes/services/services/minion-scoped-services-registry-handler.backend.service.d.ts.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/inject/models/container.d.ts.map +1 -1
- package/dist/esm/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/runtime/queue/minion-tick-consumer.backend.service.d.ts.map +1 -1
- package/dist/esm/runtime/services/define-minion-init.d.ts.map +1 -1
- package/dist/esm/runtime/services/define-minion-init.js.map +1 -1
- package/dist/esm/runtime/services/own-schedule-reader.backend.service.d.ts.map +1 -1
- package/dist/esm/runtime/services/own-schedule-reader.backend.service.js +10 -0
- package/dist/esm/runtime/services/own-schedule-reader.backend.service.js.map +1 -1
- package/dist/esm/runtime/services/start-minion-application.backend.service.d.ts.map +1 -1
- package/dist/esm/runtime/services/start-minion-application.backend.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/runtime/services/own-schedule-reader.backend.service.ts +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildo-ai/saas-minions-lib",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Node minion runtime host layer for Wildo SaaS applications",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Wildo AI",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"inversify": "8.1.0",
|
|
34
|
-
"@wildo-ai/platform-config-lib": "1.1.
|
|
35
|
-
"@wildo-ai/saas-backend-lib": "1.1.
|
|
36
|
-
"@wildo-ai/saas-models": "1.1.
|
|
34
|
+
"@wildo-ai/platform-config-lib": "1.1.4",
|
|
35
|
+
"@wildo-ai/saas-backend-lib": "1.1.4",
|
|
36
|
+
"@wildo-ai/saas-models": "1.1.4"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^24.0.15",
|
|
@@ -67,6 +67,16 @@ export interface OwnScheduleEntry {
|
|
|
67
67
|
|
|
68
68
|
const OWN_SCHEDULE_PATH = '/api/v1/runtime-self/cron-jobs';
|
|
69
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Hard deadline for the own-schedule read.
|
|
72
|
+
*
|
|
73
|
+
* The crontabs manager is ours rather than a vendor's, which changes who is at fault and not what
|
|
74
|
+
* happens: a peer that accepts the connection and never answers holds this call open indefinitely,
|
|
75
|
+
* and Node's `fetch` supplies no bound of its own. 10s, because the response is a small JSON list
|
|
76
|
+
* of this minion's jobs — nothing legitimate here spends time moving bytes.
|
|
77
|
+
*/
|
|
78
|
+
const OWN_SCHEDULE_REQUEST_TIMEOUT_MS = 10_000;
|
|
79
|
+
|
|
70
80
|
@injectable()
|
|
71
81
|
export class OwnScheduleReaderBackendService {
|
|
72
82
|
private baseUrl: string | null = null;
|
|
@@ -102,6 +112,7 @@ export class OwnScheduleReaderBackendService {
|
|
|
102
112
|
// invite the server to read the weaker of the two.
|
|
103
113
|
[WildoHeaderKeys.RUNTIME_PRINCIPAL_TOKEN]: attestation,
|
|
104
114
|
},
|
|
115
|
+
signal: AbortSignal.timeout(OWN_SCHEDULE_REQUEST_TIMEOUT_MS),
|
|
105
116
|
});
|
|
106
117
|
|
|
107
118
|
if (!response.ok) {
|