@webda/async 3.8.0 → 3.9.1
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 +291 -0
- package/lib/services/asyncjobservice.d.ts +14 -2
- package/lib/services/asyncjobservice.js +64 -28
- package/lib/services/asyncjobservice.js.map +1 -1
- package/lib/services/servicerunner.d.ts +38 -2
- package/lib/services/servicerunner.js +53 -3
- package/lib/services/servicerunner.js.map +1 -1
- package/package.json +3 -4
- package/webda.module.json +10 -0
- package/LICENSE +0 -166
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
### Dependencies
|
|
4
|
+
|
|
5
|
+
* The following workspace dependencies were updated
|
|
6
|
+
* dependencies
|
|
7
|
+
* @webda/core bumped from ^3.1.1 to ^3.1.2
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
|
|
11
|
+
* The following workspace dependencies were updated
|
|
12
|
+
* dependencies
|
|
13
|
+
* @webda/core bumped from ^3.1.2 to ^3.2.0
|
|
14
|
+
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
17
|
+
* The following workspace dependencies were updated
|
|
18
|
+
* dependencies
|
|
19
|
+
* @webda/core bumped from ^3.2.0 to ^3.2.1
|
|
20
|
+
|
|
21
|
+
### Dependencies
|
|
22
|
+
|
|
23
|
+
* The following workspace dependencies were updated
|
|
24
|
+
* dependencies
|
|
25
|
+
* @webda/core bumped from ^3.2.1 to ^3.2.2
|
|
26
|
+
|
|
27
|
+
### Dependencies
|
|
28
|
+
|
|
29
|
+
* The following workspace dependencies were updated
|
|
30
|
+
* dependencies
|
|
31
|
+
* @webda/core bumped from ^3.2.2 to ^3.3.0
|
|
32
|
+
* @webda/workout bumped from ^3.0.2 to ^3.0.3
|
|
33
|
+
* devDependencies
|
|
34
|
+
* @webda/tsc-esm bumped from ^1.0.5 to ^1.0.6
|
|
35
|
+
|
|
36
|
+
### Dependencies
|
|
37
|
+
|
|
38
|
+
* The following workspace dependencies were updated
|
|
39
|
+
* dependencies
|
|
40
|
+
* @webda/core bumped from ^3.3.0 to ^3.4.0
|
|
41
|
+
|
|
42
|
+
### Dependencies
|
|
43
|
+
|
|
44
|
+
* The following workspace dependencies were updated
|
|
45
|
+
* dependencies
|
|
46
|
+
* @webda/core bumped from ^3.5.0 to ^3.6.0
|
|
47
|
+
|
|
48
|
+
### Dependencies
|
|
49
|
+
|
|
50
|
+
* The following workspace dependencies were updated
|
|
51
|
+
* dependencies
|
|
52
|
+
* @webda/core bumped from ^3.7.0 to ^3.8.0
|
|
53
|
+
|
|
54
|
+
### Dependencies
|
|
55
|
+
|
|
56
|
+
* The following workspace dependencies were updated
|
|
57
|
+
* dependencies
|
|
58
|
+
* @webda/core bumped from ^3.8.0 to ^3.8.1
|
|
59
|
+
|
|
60
|
+
### Dependencies
|
|
61
|
+
|
|
62
|
+
* The following workspace dependencies were updated
|
|
63
|
+
* dependencies
|
|
64
|
+
* @webda/core bumped from ^3.9.0 to ^3.9.1
|
|
65
|
+
|
|
66
|
+
### Dependencies
|
|
67
|
+
|
|
68
|
+
* The following workspace dependencies were updated
|
|
69
|
+
* dependencies
|
|
70
|
+
* @webda/core bumped from ^3.10.0 to ^3.11.0
|
|
71
|
+
* @webda/workout bumped from ^3.1.0 to ^3.1.1
|
|
72
|
+
* devDependencies
|
|
73
|
+
* @webda/tsc-esm bumped from ^1.1.0 to ^1.1.1
|
|
74
|
+
|
|
75
|
+
### Dependencies
|
|
76
|
+
|
|
77
|
+
* The following workspace dependencies were updated
|
|
78
|
+
* dependencies
|
|
79
|
+
* @webda/core bumped from ^3.12.0 to ^3.13.0
|
|
80
|
+
* @webda/workout bumped from ^3.1.2 to ^3.1.3
|
|
81
|
+
* devDependencies
|
|
82
|
+
* @webda/tsc-esm bumped from ^1.2.0 to ^1.3.0
|
|
83
|
+
|
|
84
|
+
### Dependencies
|
|
85
|
+
|
|
86
|
+
* The following workspace dependencies were updated
|
|
87
|
+
* dependencies
|
|
88
|
+
* @webda/core bumped from ^3.13.0 to ^3.13.1
|
|
89
|
+
|
|
90
|
+
### Dependencies
|
|
91
|
+
|
|
92
|
+
* The following workspace dependencies were updated
|
|
93
|
+
* dependencies
|
|
94
|
+
* @webda/core bumped from ^3.13.1 to ^3.13.2
|
|
95
|
+
|
|
96
|
+
### Dependencies
|
|
97
|
+
|
|
98
|
+
* The following workspace dependencies were updated
|
|
99
|
+
* dependencies
|
|
100
|
+
* @webda/core bumped from ^3.15.0 to ^3.15.1
|
|
101
|
+
|
|
102
|
+
### Dependencies
|
|
103
|
+
|
|
104
|
+
* The following workspace dependencies were updated
|
|
105
|
+
* dependencies
|
|
106
|
+
* @webda/core bumped from ^3.15.1 to ^3.16.0
|
|
107
|
+
|
|
108
|
+
## [3.7.0](https://github.com/loopingz/webda.io/compare/async-v3.6.0...async-v3.7.0) (2024-04-12)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### Features
|
|
112
|
+
|
|
113
|
+
* update to latest otel ([db00927](https://github.com/loopingz/webda.io/commit/db00927fa3bc442b21aac2a970b0da33b6c845b6))
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### Dependencies
|
|
117
|
+
|
|
118
|
+
* The following workspace dependencies were updated
|
|
119
|
+
* dependencies
|
|
120
|
+
* @webda/core bumped from ^3.14.0 to ^3.15.0
|
|
121
|
+
* @webda/workout bumped from ^3.1.3 to ^3.2.0
|
|
122
|
+
|
|
123
|
+
## [3.6.0](https://github.com/loopingz/webda.io/compare/async-v3.5.3...async-v3.6.0) (2024-02-04)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Features
|
|
127
|
+
|
|
128
|
+
* return action on launch ([e39cf50](https://github.com/loopingz/webda.io/commit/e39cf50483857500373e5b48d80d33a8fa8504b4))
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Dependencies
|
|
132
|
+
|
|
133
|
+
* The following workspace dependencies were updated
|
|
134
|
+
* dependencies
|
|
135
|
+
* @webda/core bumped from ^3.13.2 to ^3.14.0
|
|
136
|
+
|
|
137
|
+
## [3.5.0](https://github.com/loopingz/webda.io/compare/async-v3.4.1...async-v3.5.0) (2024-01-09)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### Features
|
|
141
|
+
|
|
142
|
+
* add mutations on graphql ([fa3d647](https://github.com/loopingz/webda.io/commit/fa3d647eea8883ecf20bfd4d947f3f99ad05a0f3))
|
|
143
|
+
* add subscription system ([b4f625c](https://github.com/loopingz/webda.io/commit/b4f625c44a306f57c7cc44b3aae805b1e6537c52))
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### Dependencies
|
|
147
|
+
|
|
148
|
+
* The following workspace dependencies were updated
|
|
149
|
+
* dependencies
|
|
150
|
+
* @webda/core bumped from ^3.11.2 to ^3.12.0
|
|
151
|
+
* @webda/workout bumped from ^3.1.1 to ^3.1.2
|
|
152
|
+
* devDependencies
|
|
153
|
+
* @webda/tsc-esm bumped from ^1.1.1 to ^1.2.0
|
|
154
|
+
|
|
155
|
+
## [3.4.1](https://github.com/loopingz/webda.io/compare/async-v3.4.0...async-v3.4.1) (2023-12-05)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
### Bug Fixes
|
|
159
|
+
|
|
160
|
+
* Action override in subclass ([113f5a6](https://github.com/loopingz/webda.io/commit/113f5a60907f3e6dcea31bf82e0f476fe3b2d085))
|
|
161
|
+
* named action execution ([931f4b2](https://github.com/loopingz/webda.io/commit/931f4b2e3362d947fa0ec379a4331b13be2a6db2))
|
|
162
|
+
* upload/download util method ([6df18fd](https://github.com/loopingz/webda.io/commit/6df18fd529b2efc8c637e89d67773a0803193b44))
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### Dependencies
|
|
166
|
+
|
|
167
|
+
* The following workspace dependencies were updated
|
|
168
|
+
* dependencies
|
|
169
|
+
* @webda/core bumped from ^3.11.1 to ^3.11.2
|
|
170
|
+
|
|
171
|
+
## [3.4.0](https://github.com/loopingz/webda.io/compare/async-v3.3.1...async-v3.4.0) (2023-12-04)
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
### Features
|
|
175
|
+
|
|
176
|
+
* allow binaries access by default on AsyncAction ([9d2fad4](https://github.com/loopingz/webda.io/commit/9d2fad4e6abe0858600387d281f07512171b9eb4))
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
### Bug Fixes
|
|
180
|
+
|
|
181
|
+
* allow Binaries to define metadata and metadata schema ([2001b1e](https://github.com/loopingz/webda.io/commit/2001b1e9a43b415a25e9e7726e94d351d1749e51))
|
|
182
|
+
* remove store reference and use model to retrieve the action ([6ee4f89](https://github.com/loopingz/webda.io/commit/6ee4f89385d864de1f939254fdbadd32b9de2486))
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
### Dependencies
|
|
186
|
+
|
|
187
|
+
* The following workspace dependencies were updated
|
|
188
|
+
* dependencies
|
|
189
|
+
* @webda/core bumped from ^3.11.0 to ^3.11.1
|
|
190
|
+
|
|
191
|
+
## [3.3.0](https://github.com/loopingz/webda.io/compare/async-v3.2.4...async-v3.3.0) (2023-11-29)
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
### Features
|
|
195
|
+
|
|
196
|
+
* add a setModelStore to force model store ([5354f46](https://github.com/loopingz/webda.io/commit/5354f4686fd93f3e573d7b6209f3b38ffce06073))
|
|
197
|
+
* add action input validation and openapi definition ([fc0e28c](https://github.com/loopingz/webda.io/commit/fc0e28c30f3ca5866f4accad2ad8be0e2374d2b5))
|
|
198
|
+
* async module use AsyncAction model directly ([862d051](https://github.com/loopingz/webda.io/commit/862d0510f0104386459e51f80ef2650f64bdaa67))
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### Dependencies
|
|
202
|
+
|
|
203
|
+
* The following workspace dependencies were updated
|
|
204
|
+
* dependencies
|
|
205
|
+
* @webda/core bumped from ^3.9.1 to ^3.10.0
|
|
206
|
+
|
|
207
|
+
## [3.2.3](https://github.com/loopingz/webda.io/compare/async-v3.2.2...async-v3.2.3) (2023-11-18)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
### Bug Fixes
|
|
211
|
+
|
|
212
|
+
* links with __ prefix misplaced with ___ by escapeName ([6a5a8b9](https://github.com/loopingz/webda.io/commit/6a5a8b91ae9e02d65b0a8db6c3647d5108de104f))
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### Dependencies
|
|
216
|
+
|
|
217
|
+
* The following workspace dependencies were updated
|
|
218
|
+
* dependencies
|
|
219
|
+
* @webda/core bumped from ^3.8.1 to ^3.9.0
|
|
220
|
+
|
|
221
|
+
## [3.2.0](https://github.com/loopingz/webda.io/compare/async-v3.1.1...async-v3.2.0) (2023-11-12)
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
### Features
|
|
225
|
+
|
|
226
|
+
* add CoreModel listeners system ([977dd9d](https://github.com/loopingz/webda.io/commit/977dd9d8a04f5b3e6d19f09f8755277b26242a18))
|
|
227
|
+
* drop node16 as it is EOL ([a6b795a](https://github.com/loopingz/webda.io/commit/a6b795a76e5089a0cf81269c49e00131bc17c1a9))
|
|
228
|
+
* RESTDomainService: add the url info retriever on Binaries ([13fe77c](https://github.com/loopingz/webda.io/commit/13fe77ccd0082432ea79ec9b7c32ac261cebeb01))
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### Dependencies
|
|
232
|
+
|
|
233
|
+
* The following workspace dependencies were updated
|
|
234
|
+
* dependencies
|
|
235
|
+
* @webda/core bumped from ^3.6.0 to ^3.7.0
|
|
236
|
+
* @webda/workout bumped from ^3.0.4 to ^3.1.0
|
|
237
|
+
* devDependencies
|
|
238
|
+
* @webda/tsc-esm bumped from ^1.0.6 to ^1.1.0
|
|
239
|
+
|
|
240
|
+
## [3.1.0](https://github.com/loopingz/webda.io/compare/async-v3.0.10...async-v3.1.0) (2023-10-04)
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
### Features
|
|
244
|
+
|
|
245
|
+
* add more cases to transformName for RESTDomainService ([b1071f2](https://github.com/loopingz/webda.io/commit/b1071f20157932ccbd4e0150791300f624a6e25c))
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
### Bug Fixes
|
|
249
|
+
|
|
250
|
+
* default toLowerCase for k8s resources name ([aaa0d58](https://github.com/loopingz/webda.io/commit/aaa0d5844f12532d2eb3a5813968a730deb4d4d0))
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
### Dependencies
|
|
254
|
+
|
|
255
|
+
* The following workspace dependencies were updated
|
|
256
|
+
* dependencies
|
|
257
|
+
* @webda/core bumped from ^3.4.0 to ^3.5.0
|
|
258
|
+
* @webda/workout bumped from ^3.0.3 to ^3.0.4
|
|
259
|
+
|
|
260
|
+
## [3.0.4](https://github.com/loopingz/webda.io/compare/async-v3.0.3...async-v3.0.4) (2023-06-30)
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
### Bug Fixes
|
|
264
|
+
|
|
265
|
+
* add explicit dependencies declaration ([#411](https://github.com/loopingz/webda.io/issues/411)) ([4d8cbae](https://github.com/loopingz/webda.io/commit/4d8cbae4d6d31b62df98832591bc97ca77ae6a69))
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
### Dependencies
|
|
269
|
+
|
|
270
|
+
* The following workspace dependencies were updated
|
|
271
|
+
* dependencies
|
|
272
|
+
* @webda/core bumped from ^3.1.0 to ^3.1.1
|
|
273
|
+
* @webda/workout bumped from ^3.0.1 to ^3.0.2
|
|
274
|
+
* devDependencies
|
|
275
|
+
* @webda/tsc-esm bumped from ^1.0.4 to ^1.0.5
|
|
276
|
+
|
|
277
|
+
## [3.0.3](https://github.com/loopingz/webda.io/compare/async-v3.0.2...async-v3.0.3) (2023-06-30)
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
### Bug Fixes
|
|
281
|
+
|
|
282
|
+
* add missing dependencies for pnpm/bazel ([1ec04a3](https://github.com/loopingz/webda.io/commit/1ec04a375998ee7a7a00ea03c30a2960b7778d6b))
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
### Dependencies
|
|
286
|
+
|
|
287
|
+
* The following workspace dependencies were updated
|
|
288
|
+
* dependencies
|
|
289
|
+
* @webda/core bumped from ^3.0.2 to ^3.1.0
|
|
290
|
+
* devDependencies
|
|
291
|
+
* @webda/tsc-esm bumped from ^1.0.3 to ^1.0.4
|
|
@@ -88,6 +88,18 @@ export declare class AsyncJobServiceParameters extends ServiceParameters {
|
|
|
88
88
|
* @default 500
|
|
89
89
|
*/
|
|
90
90
|
logsLimit: number;
|
|
91
|
+
/**
|
|
92
|
+
* Define the log format
|
|
93
|
+
*
|
|
94
|
+
* @default ConsoleLoggerDefaultFormat
|
|
95
|
+
*/
|
|
96
|
+
logFormat?: string;
|
|
97
|
+
/**
|
|
98
|
+
* How long before saving logs (in ms)
|
|
99
|
+
*
|
|
100
|
+
* @default 5000
|
|
101
|
+
*/
|
|
102
|
+
logSaveDelay?: number;
|
|
91
103
|
/**
|
|
92
104
|
* Model to use when launching async action
|
|
93
105
|
*
|
|
@@ -139,7 +151,7 @@ export default class AsyncJobService<T extends AsyncJobServiceParameters = Async
|
|
|
139
151
|
*/
|
|
140
152
|
model: Constructor<AsyncWebdaAction, [string, string, ...any[]]> & CoreModelDefinition<AsyncAction>;
|
|
141
153
|
/**
|
|
142
|
-
* Model to use when launching action
|
|
154
|
+
* Operation Model to use when launching action
|
|
143
155
|
*/
|
|
144
156
|
operationModel: Constructor<AsyncOperationAction, [string, OperationContext, WorkerLogLevel?]>;
|
|
145
157
|
/**
|
|
@@ -266,7 +278,7 @@ export default class AsyncJobService<T extends AsyncJobServiceParameters = Async
|
|
|
266
278
|
* @param message
|
|
267
279
|
* @returns
|
|
268
280
|
*/
|
|
269
|
-
postHook(jobInfo: JobInfo, message: any): Promise<AsyncWebdaAction>;
|
|
281
|
+
postHook(jobInfo: JobInfo, message: any): Promise<AsyncWebdaAction | AsyncOperationAction>;
|
|
270
282
|
/**
|
|
271
283
|
* Launch a service.method as an AsyncAction
|
|
272
284
|
* @param serviceName
|
|
@@ -2,8 +2,9 @@ import { CancelableLoopPromise, CancelablePromise, Core, CronService, FileUtils,
|
|
|
2
2
|
import axios from "axios";
|
|
3
3
|
import * as crypto from "crypto";
|
|
4
4
|
import { schedule as crontabSchedule } from "node-cron";
|
|
5
|
+
import { AsyncOperationAction, AsyncWebdaAction } from "../models.js";
|
|
5
6
|
import { Runner } from "./runner.js";
|
|
6
|
-
import ServiceRunner from "./servicerunner.js";
|
|
7
|
+
import ServiceRunner, { ActionMemoryLogger } from "./servicerunner.js";
|
|
7
8
|
/**
|
|
8
9
|
* @inheritdoc
|
|
9
10
|
*/
|
|
@@ -65,9 +66,10 @@ class AsyncJobService extends Service {
|
|
|
65
66
|
this.log("INFO", "Loading operations", this.parameters.asyncOperationDefinition);
|
|
66
67
|
this.addRoute(`${this.parameters.url}{?full}`, ["GET"], this.listOperations);
|
|
67
68
|
this.addRoute(`${this.parameters.url}/{operationId}{?schedule}`, ["PUT"], this.launchOperation);
|
|
68
|
-
this.operationModel = this.getWebda().getModel(this.parameters.asyncOperationModel);
|
|
69
69
|
this.registerOperations(FileUtils.load(this.parameters.asyncOperationDefinition));
|
|
70
70
|
}
|
|
71
|
+
// Load operations model
|
|
72
|
+
this.operationModel = this.getWebda().getModel(this.parameters.asyncOperationModel);
|
|
71
73
|
// This is internal job reporting so no need to document the api
|
|
72
74
|
this.addRoute(`${this.parameters.url}/status`, ["POST"], this.statusHook, { hidden: true });
|
|
73
75
|
// Add upload/download route if needed
|
|
@@ -342,13 +344,23 @@ class AsyncJobService extends Service {
|
|
|
342
344
|
async postHook(jobInfo, message) {
|
|
343
345
|
// Http allow to break paradigm between the executor and the orchestrator
|
|
344
346
|
if (jobInfo.JOB_HOOK.startsWith("http")) {
|
|
345
|
-
|
|
347
|
+
const data = (await axios.post(jobInfo.JOB_HOOK, message, {
|
|
346
348
|
headers: this.getHeaders(jobInfo)
|
|
347
349
|
})).data;
|
|
350
|
+
if (data.operationId) {
|
|
351
|
+
return new this.operationModel(data.operationId, data.context, data.logLevel);
|
|
352
|
+
}
|
|
353
|
+
else if (data.service && data.method) {
|
|
354
|
+
data.arguments ?? (data.arguments = []);
|
|
355
|
+
return new this.model(data.service, data.method, ...data.arguments);
|
|
356
|
+
}
|
|
357
|
+
throw new Error("Unknown action received from hook");
|
|
348
358
|
}
|
|
349
359
|
else if (jobInfo.JOB_HOOK === "store") {
|
|
350
360
|
// If executor and orchestrator runs within same privilege it simplify the infrastructure
|
|
351
|
-
|
|
361
|
+
const model = await this.model.ref(jobInfo.JOB_ID).get();
|
|
362
|
+
await model.patch(message, null);
|
|
363
|
+
return model;
|
|
352
364
|
}
|
|
353
365
|
}
|
|
354
366
|
/**
|
|
@@ -396,41 +408,65 @@ class AsyncJobService extends Service {
|
|
|
396
408
|
}
|
|
397
409
|
// If we are not the target redirect to the right one
|
|
398
410
|
if (jobInfo.JOB_ORCHESTRATOR !== this.getName()) {
|
|
399
|
-
this.log("DEBUG", `Passing jobInfo ${jobInfo} to targeted service`);
|
|
411
|
+
this.log("DEBUG", `Passing jobInfo ${JSON.stringify(jobInfo)} to targeted service`);
|
|
400
412
|
return this.getService(jobInfo.JOB_ORCHESTRATOR).runAsyncOperationAction(jobInfo);
|
|
401
413
|
}
|
|
402
414
|
this.log("DEBUG", "Getting action to execute from hook", jobInfo);
|
|
403
|
-
|
|
404
|
-
let
|
|
405
|
-
agent: { ...Runner.getAgentInfo(), nodeVersion: process.version },
|
|
406
|
-
status: "RUNNING"
|
|
407
|
-
});
|
|
408
|
-
this.log("DEBUG", "Action received", action.serviceName, action.method, action.arguments);
|
|
409
|
-
let results;
|
|
415
|
+
let results, logger, errorMessage;
|
|
416
|
+
let status = "SUCCESS";
|
|
410
417
|
try {
|
|
411
|
-
//
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
418
|
+
// Get action info by calling the hook
|
|
419
|
+
let action = await this.postHook(jobInfo, {
|
|
420
|
+
agent: { ...Runner.getAgentInfo(), nodeVersion: process.version },
|
|
421
|
+
status: "RUNNING"
|
|
422
|
+
});
|
|
423
|
+
logger = new ActionMemoryLogger(this.getWebda().getWorkerOutput(), action.logLevel, this.parameters.logsLimit || 5000, async (logs) => {
|
|
424
|
+
// Send logs to the hook
|
|
425
|
+
if (jobInfo && jobInfo.JOB_HOOK) {
|
|
426
|
+
await this.postHook(jobInfo, {
|
|
427
|
+
logs
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
}, this.parameters.logSaveDelay, this.parameters.logFormat);
|
|
431
|
+
if (action instanceof AsyncWebdaAction) {
|
|
432
|
+
// Check it contains the right info
|
|
433
|
+
if (!action.method || !action.serviceName) {
|
|
434
|
+
throw new Error("WebdaAsyncAction must have method and serviceName defined at least");
|
|
435
|
+
}
|
|
436
|
+
// Call the service[method](...args)
|
|
437
|
+
let service = this.getService(action.serviceName);
|
|
438
|
+
if (!service) {
|
|
439
|
+
throw new Error(`WebdaAsyncAction Service '${action.serviceName}' not found: mismatch app version`);
|
|
440
|
+
}
|
|
441
|
+
// @ts-ignore
|
|
442
|
+
if (!service[action.method]) {
|
|
443
|
+
throw new Error(`WebdaAsyncAction Method '${action.method}' not found in service ${action.serviceName}: mismatch app version`);
|
|
444
|
+
}
|
|
445
|
+
// @ts-ignore
|
|
446
|
+
results = await service[action.method](...(action.arguments || []));
|
|
419
447
|
}
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
448
|
+
else if (action instanceof AsyncOperationAction) {
|
|
449
|
+
// Call the operation
|
|
450
|
+
let ctx = new SimpleOperationContext(this.getWebda());
|
|
451
|
+
// Unserialization might not have happened
|
|
452
|
+
ctx.setSession(action.context.getSession ? action.context.getSession() : action.context["session"]);
|
|
453
|
+
// Unserialization might not have happened
|
|
454
|
+
ctx.setInput(Buffer.from(action.context["input"]?.data || []));
|
|
455
|
+
// Set the logger in extension
|
|
456
|
+
ctx.setExtension("actionLogger", logger);
|
|
457
|
+
// Call the operation
|
|
458
|
+
this.log("TRACE", `Calling operation ${action.operationId}`);
|
|
459
|
+
await this.getWebda().callOperation(ctx, action.operationId);
|
|
423
460
|
}
|
|
424
|
-
// @ts-ignore
|
|
425
|
-
results = await service[action.method](...(action.arguments || []));
|
|
426
461
|
}
|
|
427
462
|
catch (err) {
|
|
428
463
|
// Job is in error
|
|
429
|
-
|
|
430
|
-
|
|
464
|
+
errorMessage = err?.message;
|
|
465
|
+
status = "ERROR";
|
|
431
466
|
}
|
|
467
|
+
logger?.close(true);
|
|
432
468
|
// Update status
|
|
433
|
-
await this.postHook(jobInfo, { results, status:
|
|
469
|
+
await this.postHook(jobInfo, { results, status, errorMessage, logs: logger?.getFormattedLogs() });
|
|
434
470
|
}
|
|
435
471
|
/**
|
|
436
472
|
* Get the cron callback function
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncjobservice.js","sourceRoot":"","sources":["../../src/services/asyncjobservice.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EAGjB,IAAI,EAGJ,WAAW,EACX,SAAS,EACT,SAAS,EAET,cAAc,EAGd,OAAO,EACP,iBAAiB,EACjB,sBAAsB,EAGtB,UAAU,EAEX,MAAM,aAAa,CAAC;AAErB,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,WAAW,CAAC;AAExD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAY5C;;GAEG;AACH,MAAM,OAAO,yBAA0B,SAAQ,iBAAiB;IAgG9D,YAAY,MAAW;QACrB,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,GAAG,KAAR,IAAI,CAAC,GAAG,GAAK,aAAa,EAAC;QAC3B,IAAI,CAAC,KAAK,KAAV,I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gBACpC,oBAAoB;YACtB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;AA5iBD;;GAEG;AACI,yBAAS,GAAW,QAAQ,AAAnB,CAAoB;eApBjB,eAAe;AAgkBpC,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -19,15 +19,51 @@ export interface ServiceAction {
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Keep log in memory and save it to the action object every 5s
|
|
22
|
+
*
|
|
22
23
|
*/
|
|
23
24
|
export declare class ActionMemoryLogger extends MemoryLogger {
|
|
24
|
-
protected action: AsyncAction;
|
|
25
25
|
logSaveDelay: number;
|
|
26
26
|
format?: string;
|
|
27
27
|
protected timeout: NodeJS.Timeout;
|
|
28
|
-
|
|
28
|
+
protected saver: (logs: string[]) => Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param output to connect to
|
|
32
|
+
* @param level of logs
|
|
33
|
+
* @param limit the size of the log
|
|
34
|
+
* @param actionOrSaver the action to save the logs to or a function to save the logs
|
|
35
|
+
* @param logSaveDelay delay before saving the logs
|
|
36
|
+
* @param format format of the logs
|
|
37
|
+
*/
|
|
38
|
+
constructor(output: WorkerOutput, level: WorkerLogLevel, limit: number, actionOrSaver: AsyncAction | ((logs: string[]) => Promise<void>), logSaveDelay: number, format?: string);
|
|
39
|
+
/**
|
|
40
|
+
* @inheritdoc
|
|
41
|
+
*/
|
|
29
42
|
onMessage(msg: WorkerMessage): void;
|
|
43
|
+
/**
|
|
44
|
+
* Save the logs to the action
|
|
45
|
+
* @returns
|
|
46
|
+
*/
|
|
30
47
|
save(): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Clear the timeout
|
|
50
|
+
*/
|
|
51
|
+
clearTimeout(): void;
|
|
52
|
+
/**
|
|
53
|
+
* Close the logger
|
|
54
|
+
* @param clearTimeout clear the timeout
|
|
55
|
+
* @returns
|
|
56
|
+
*/
|
|
57
|
+
close(clearTimeout?: boolean): void;
|
|
58
|
+
/**
|
|
59
|
+
* Returns the formatted logs based on this.format
|
|
60
|
+
* @returns
|
|
61
|
+
*/
|
|
62
|
+
getFormattedLogs(): string[];
|
|
63
|
+
/**
|
|
64
|
+
* Save the logs and close the logger
|
|
65
|
+
* @returns
|
|
66
|
+
*/
|
|
31
67
|
saveAndClose(): Promise<void>;
|
|
32
68
|
}
|
|
33
69
|
/**
|
|
@@ -4,27 +4,77 @@ import { Runner, RunnerParameters } from "./runner.js";
|
|
|
4
4
|
import { SimpleOperationContext } from "@webda/core";
|
|
5
5
|
/**
|
|
6
6
|
* Keep log in memory and save it to the action object every 5s
|
|
7
|
+
*
|
|
7
8
|
*/
|
|
8
9
|
export class ActionMemoryLogger extends MemoryLogger {
|
|
9
|
-
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @param output to connect to
|
|
13
|
+
* @param level of logs
|
|
14
|
+
* @param limit the size of the log
|
|
15
|
+
* @param actionOrSaver the action to save the logs to or a function to save the logs
|
|
16
|
+
* @param logSaveDelay delay before saving the logs
|
|
17
|
+
* @param format format of the logs
|
|
18
|
+
*/
|
|
19
|
+
constructor(output, level, limit, actionOrSaver, logSaveDelay, format) {
|
|
10
20
|
super(output, level, limit);
|
|
11
|
-
this.action = action;
|
|
12
21
|
this.logSaveDelay = logSaveDelay;
|
|
13
22
|
this.format = format;
|
|
23
|
+
if (typeof actionOrSaver === "function") {
|
|
24
|
+
this.saver = actionOrSaver;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
this.saver = async (logs) => await actionOrSaver?.patch({ logs }, null);
|
|
28
|
+
}
|
|
14
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* @inheritdoc
|
|
32
|
+
*/
|
|
15
33
|
onMessage(msg) {
|
|
16
34
|
super.onMessage(msg);
|
|
17
35
|
if (!this.timeout) {
|
|
18
36
|
this.timeout = setTimeout(() => this.save(), this.logSaveDelay);
|
|
19
37
|
}
|
|
20
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Save the logs to the action
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
21
43
|
save() {
|
|
44
|
+
this.clearTimeout();
|
|
45
|
+
return this.saver(this.getFormattedLogs());
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Clear the timeout
|
|
49
|
+
*/
|
|
50
|
+
clearTimeout() {
|
|
22
51
|
if (this.timeout) {
|
|
23
52
|
clearTimeout(this.timeout);
|
|
24
53
|
this.timeout = undefined;
|
|
25
54
|
}
|
|
26
|
-
return this.action.patch({ logs: this.getLogs().map(msg => ConsoleLogger.format(msg, this.format)) }, null);
|
|
27
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Close the logger
|
|
58
|
+
* @param clearTimeout clear the timeout
|
|
59
|
+
* @returns
|
|
60
|
+
*/
|
|
61
|
+
close(clearTimeout = false) {
|
|
62
|
+
if (clearTimeout) {
|
|
63
|
+
this.clearTimeout();
|
|
64
|
+
}
|
|
65
|
+
return super.close();
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Returns the formatted logs based on this.format
|
|
69
|
+
* @returns
|
|
70
|
+
*/
|
|
71
|
+
getFormattedLogs() {
|
|
72
|
+
return this.getLogs().map(msg => ConsoleLogger.format(msg, this.format));
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Save the logs and close the logger
|
|
76
|
+
* @returns
|
|
77
|
+
*/
|
|
28
78
|
async saveAndClose() {
|
|
29
79
|
this.close();
|
|
30
80
|
return this.save();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servicerunner.js","sourceRoot":"","sources":["../../src/services/servicerunner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA+C,MAAM,gBAAgB,CAAC;AAC1G,OAAO,EAAe,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEhF,OAAO,EAAa,MAAM,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAA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|
1
1
|
{
|
|
2
2
|
"name": "@webda/async",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.1",
|
|
4
4
|
"description": "Async System",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"package.json"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@webda/core": "^3.17.
|
|
24
|
+
"@webda/core": "^3.17.1",
|
|
25
25
|
"@webda/workout": "^3.2.1",
|
|
26
26
|
"axios": "^1.1.3",
|
|
27
27
|
"json-schema": "^0.4.0",
|
|
@@ -73,6 +73,5 @@
|
|
|
73
73
|
"@webda/core",
|
|
74
74
|
"@webda/tsc-esm"
|
|
75
75
|
]
|
|
76
|
-
}
|
|
77
|
-
"gitHead": "68382a59edce7364bb890fa93464172b1788663b"
|
|
76
|
+
}
|
|
78
77
|
}
|
package/webda.module.json
CHANGED
|
@@ -256,6 +256,16 @@
|
|
|
256
256
|
"description": "Limit the number of lines of logs available for an async action\n\nIf you need to store large amount of logs then you should use the CloudWatchLogger or similar logger",
|
|
257
257
|
"default": 500
|
|
258
258
|
},
|
|
259
|
+
"logFormat": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"description": "Define the log format",
|
|
262
|
+
"default": "ConsoleLoggerDefaultFormat"
|
|
263
|
+
},
|
|
264
|
+
"logSaveDelay": {
|
|
265
|
+
"type": "number",
|
|
266
|
+
"description": "How long before saving logs (in ms)",
|
|
267
|
+
"default": 5000
|
|
268
|
+
},
|
|
259
269
|
"asyncActionModel": {
|
|
260
270
|
"type": "string",
|
|
261
271
|
"description": "Model to use when launching async action",
|
package/LICENSE
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
-
Version 3, 29 June 2007
|
|
3
|
-
|
|
4
|
-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
5
|
-
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
-
of this license document, but changing it is not allowed.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
This version of the GNU Lesser General Public License incorporates
|
|
10
|
-
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
-
License, supplemented by the additional permissions listed below.
|
|
12
|
-
|
|
13
|
-
0. Additional Definitions.
|
|
14
|
-
|
|
15
|
-
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
-
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
-
General Public License.
|
|
18
|
-
|
|
19
|
-
"The Library" refers to a covered work governed by this License,
|
|
20
|
-
other than an Application or a Combined Work as defined below.
|
|
21
|
-
|
|
22
|
-
An "Application" is any work that makes use of an interface provided
|
|
23
|
-
by the Library, but which is not otherwise based on the Library.
|
|
24
|
-
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
-
of using an interface provided by the Library.
|
|
26
|
-
|
|
27
|
-
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
-
Application with the Library. The particular version of the Library
|
|
29
|
-
with which the Combined Work was made is also called the "Linked
|
|
30
|
-
Version".
|
|
31
|
-
|
|
32
|
-
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
-
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
-
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
-
based on the Application, and not on the Linked Version.
|
|
36
|
-
|
|
37
|
-
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
-
object code and/or source code for the Application, including any data
|
|
39
|
-
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
-
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
-
|
|
42
|
-
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
-
|
|
44
|
-
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
-
without being bound by section 3 of the GNU GPL.
|
|
46
|
-
|
|
47
|
-
2. Conveying Modified Versions.
|
|
48
|
-
|
|
49
|
-
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
-
facility refers to a function or data to be supplied by an Application
|
|
51
|
-
that uses the facility (other than as an argument passed when the
|
|
52
|
-
facility is invoked), then you may convey a copy of the modified
|
|
53
|
-
version:
|
|
54
|
-
|
|
55
|
-
a) under this License, provided that you make a good faith effort to
|
|
56
|
-
ensure that, in the event an Application does not supply the
|
|
57
|
-
function or data, the facility still operates, and performs
|
|
58
|
-
whatever part of its purpose remains meaningful, or
|
|
59
|
-
|
|
60
|
-
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
-
this License applicable to that copy.
|
|
62
|
-
|
|
63
|
-
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
-
|
|
65
|
-
The object code form of an Application may incorporate material from
|
|
66
|
-
a header file that is part of the Library. You may convey such object
|
|
67
|
-
code under terms of your choice, provided that, if the incorporated
|
|
68
|
-
material is not limited to numerical parameters, data structure
|
|
69
|
-
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
-
(ten or fewer lines in length), you do both of the following:
|
|
71
|
-
|
|
72
|
-
a) Give prominent notice with each copy of the object code that the
|
|
73
|
-
Library is used in it and that the Library and its use are
|
|
74
|
-
covered by this License.
|
|
75
|
-
|
|
76
|
-
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
-
document.
|
|
78
|
-
|
|
79
|
-
4. Combined Works.
|
|
80
|
-
|
|
81
|
-
You may convey a Combined Work under terms of your choice that,
|
|
82
|
-
taken together, effectively do not restrict modification of the
|
|
83
|
-
portions of the Library contained in the Combined Work and reverse
|
|
84
|
-
engineering for debugging such modifications, if you also do each of
|
|
85
|
-
the following:
|
|
86
|
-
|
|
87
|
-
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
-
the Library is used in it and that the Library and its use are
|
|
89
|
-
covered by this License.
|
|
90
|
-
|
|
91
|
-
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
-
document.
|
|
93
|
-
|
|
94
|
-
c) For a Combined Work that displays copyright notices during
|
|
95
|
-
execution, include the copyright notice for the Library among
|
|
96
|
-
these notices, as well as a reference directing the user to the
|
|
97
|
-
copies of the GNU GPL and this license document.
|
|
98
|
-
|
|
99
|
-
d) Do one of the following:
|
|
100
|
-
|
|
101
|
-
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
-
License, and the Corresponding Application Code in a form
|
|
103
|
-
suitable for, and under terms that permit, the user to
|
|
104
|
-
recombine or relink the Application with a modified version of
|
|
105
|
-
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
-
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
-
Corresponding Source.
|
|
108
|
-
|
|
109
|
-
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
-
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
-
a copy of the Library already present on the user's computer
|
|
112
|
-
system, and (b) will operate properly with a modified version
|
|
113
|
-
of the Library that is interface-compatible with the Linked
|
|
114
|
-
Version.
|
|
115
|
-
|
|
116
|
-
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
-
be required to provide such information under section 6 of the
|
|
118
|
-
GNU GPL, and only to the extent that such information is
|
|
119
|
-
necessary to install and execute a modified version of the
|
|
120
|
-
Combined Work produced by recombining or relinking the
|
|
121
|
-
Application with a modified version of the Linked Version. (If
|
|
122
|
-
you use option 4d0, the Installation Information must accompany
|
|
123
|
-
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
-
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
-
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
-
for conveying Corresponding Source.)
|
|
127
|
-
|
|
128
|
-
5. Combined Libraries.
|
|
129
|
-
|
|
130
|
-
You may place library facilities that are a work based on the
|
|
131
|
-
Library side by side in a single library together with other library
|
|
132
|
-
facilities that are not Applications and are not covered by this
|
|
133
|
-
License, and convey such a combined library under terms of your
|
|
134
|
-
choice, if you do both of the following:
|
|
135
|
-
|
|
136
|
-
a) Accompany the combined library with a copy of the same work based
|
|
137
|
-
on the Library, uncombined with any other library facilities,
|
|
138
|
-
conveyed under the terms of this License.
|
|
139
|
-
|
|
140
|
-
b) Give prominent notice with the combined library that part of it
|
|
141
|
-
is a work based on the Library, and explaining where to find the
|
|
142
|
-
accompanying uncombined form of the same work.
|
|
143
|
-
|
|
144
|
-
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
-
|
|
146
|
-
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
-
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
-
versions will be similar in spirit to the present version, but may
|
|
149
|
-
differ in detail to address new problems or concerns.
|
|
150
|
-
|
|
151
|
-
Each version is given a distinguishing version number. If the
|
|
152
|
-
Library as you received it specifies that a certain numbered version
|
|
153
|
-
of the GNU Lesser General Public License "or any later version"
|
|
154
|
-
applies to it, you have the option of following the terms and
|
|
155
|
-
conditions either of that published version or of any later version
|
|
156
|
-
published by the Free Software Foundation. If the Library as you
|
|
157
|
-
received it does not specify a version number of the GNU Lesser
|
|
158
|
-
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
-
General Public License ever published by the Free Software Foundation.
|
|
160
|
-
|
|
161
|
-
If the Library as you received it specifies that a proxy can decide
|
|
162
|
-
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
-
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
-
permanent authorization for you to choose that version for the
|
|
165
|
-
Library.
|
|
166
|
-
|