@openfn/ws-worker 1.9.1 → 1.10.0
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 +22 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -0
- package/dist/start.js +3 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# ws-worker
|
|
2
2
|
|
|
3
|
+
## 1.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1857b46: Allow configuration of job log level
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [1857b46]
|
|
12
|
+
- @openfn/engine-multi@1.5.0
|
|
13
|
+
- @openfn/lexicon@1.2.0
|
|
14
|
+
- @openfn/runtime@1.6.2
|
|
15
|
+
|
|
16
|
+
## 1.9.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- beb4617: Fix an issue where a DataCloneError can occur after an exception is thrown
|
|
21
|
+
- Updated dependencies [beb4617]
|
|
22
|
+
- @openfn/runtime@1.6.2
|
|
23
|
+
- @openfn/engine-multi@1.4.9
|
|
24
|
+
|
|
3
25
|
## 1.9.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from 'node:events';
|
|
2
2
|
import Koa from 'koa';
|
|
3
|
-
import { Logger } from '@openfn/logger';
|
|
3
|
+
import { LogLevel, Logger } from '@openfn/logger';
|
|
4
4
|
import * as l from '@openfn/lexicon/lightning';
|
|
5
5
|
import { ClaimRun } from '@openfn/lexicon/lightning';
|
|
6
6
|
import { ExecuteOptions, RuntimeEngine } from '@openfn/engine-multi';
|
|
@@ -49,6 +49,7 @@ interface Channel extends Channel$1 {
|
|
|
49
49
|
type WorkerRunOptions = ExecuteOptions & {
|
|
50
50
|
outputDataclips?: boolean;
|
|
51
51
|
payloadLimitMb?: number;
|
|
52
|
+
jobLogLevel?: LogLevel;
|
|
52
53
|
};
|
|
53
54
|
|
|
54
55
|
type Context = {
|
package/dist/index.js
CHANGED
|
@@ -287,6 +287,9 @@ var convert_lightning_plan_default = (run, options = {}) => {
|
|
|
287
287
|
if ("output_dataclips" in run.options) {
|
|
288
288
|
engineOpts.outputDataclips = run.options.output_dataclips;
|
|
289
289
|
}
|
|
290
|
+
if ("job_log_level" in run.options) {
|
|
291
|
+
engineOpts.jobLogLevel = run.options.job_log_level;
|
|
292
|
+
}
|
|
290
293
|
}
|
|
291
294
|
const plan = {
|
|
292
295
|
id: run.id,
|
package/dist/start.js
CHANGED
|
@@ -427,6 +427,9 @@ var convert_lightning_plan_default = (run2, options = {}) => {
|
|
|
427
427
|
if ("output_dataclips" in run2.options) {
|
|
428
428
|
engineOpts.outputDataclips = run2.options.output_dataclips;
|
|
429
429
|
}
|
|
430
|
+
if ("job_log_level" in run2.options) {
|
|
431
|
+
engineOpts.jobLogLevel = run2.options.job_log_level;
|
|
432
|
+
}
|
|
430
433
|
}
|
|
431
434
|
const plan = {
|
|
432
435
|
id: run2.id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/ws-worker",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "A Websocket Worker to connect Lightning to a Runtime Engine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"koa-logger": "^3.2.1",
|
|
23
23
|
"phoenix": "1.7.10",
|
|
24
24
|
"ws": "^8.18.0",
|
|
25
|
-
"@openfn/engine-multi": "1.
|
|
25
|
+
"@openfn/engine-multi": "1.5.0",
|
|
26
26
|
"@openfn/logger": "1.0.4",
|
|
27
|
-
"@openfn/lexicon": "^1.
|
|
28
|
-
"@openfn/runtime": "1.6.
|
|
27
|
+
"@openfn/lexicon": "^1.2.0",
|
|
28
|
+
"@openfn/runtime": "1.6.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/koa": "^2.13.5",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"tsup": "^6.2.3",
|
|
42
42
|
"typescript": "^4.6.4",
|
|
43
43
|
"yargs": "^17.6.2",
|
|
44
|
-
"@openfn/lightning-mock": "2.0.
|
|
44
|
+
"@openfn/lightning-mock": "2.0.31"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"dist",
|