@tsed/bullmq 8.16.1 → 8.17.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/README.md +26 -1
- package/lib/esm/BullMQModule.js +1 -0
- package/lib/types/config/config.d.ts +6 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -80,7 +80,9 @@ import "@tsed/bullmq"; // import bullmq ts.ed module
|
|
|
80
80
|
special: {
|
|
81
81
|
// Specify additional worker options by queue name
|
|
82
82
|
}
|
|
83
|
-
}
|
|
83
|
+
},
|
|
84
|
+
// Specify the log level of the module
|
|
85
|
+
logLevel: "info"
|
|
84
86
|
}
|
|
85
87
|
})
|
|
86
88
|
export class Server {}
|
|
@@ -255,6 +257,29 @@ class MyService {
|
|
|
255
257
|
}
|
|
256
258
|
```
|
|
257
259
|
|
|
260
|
+
## Logs
|
|
261
|
+
|
|
262
|
+
By default, the module logs each job’s start, completion, and failure.
|
|
263
|
+
|
|
264
|
+
Start and completion are logged at level `info`; failures are logged at level `error`.
|
|
265
|
+
To change or disable this behavior, set `logLevel` in the configuration.
|
|
266
|
+
|
|
267
|
+
```ts
|
|
268
|
+
|
|
269
|
+
@Configuration({
|
|
270
|
+
bullmq: {
|
|
271
|
+
// ...
|
|
272
|
+
logLevel: "off"
|
|
273
|
+
// ...
|
|
274
|
+
}
|
|
275
|
+
})
|
|
276
|
+
export class Server {}
|
|
277
|
+
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
**Note**: The module logs when job controller is missing as `warn`. This cannot be separetely controlled.
|
|
281
|
+
|
|
282
|
+
|
|
258
283
|
## Contributors
|
|
259
284
|
|
|
260
285
|
<a href="https://github.com/tsedio/tsed/graphs/contributors"><img src="https://opencollective.com/tsed/contributors.svg?width=890" /></a>
|
package/lib/esm/BullMQModule.js
CHANGED
|
@@ -40,6 +40,12 @@ export type BullMQConfig = {
|
|
|
40
40
|
* Specify additional worker options by queue name
|
|
41
41
|
*/
|
|
42
42
|
workerOptions?: Record<string, Partial<WorkerOptions>>;
|
|
43
|
+
/**
|
|
44
|
+
* Log level for the module
|
|
45
|
+
*
|
|
46
|
+
* Default: Info
|
|
47
|
+
*/
|
|
48
|
+
logLevel?: "debug" | "info" | "warn" | "error" | "off" | "all";
|
|
43
49
|
};
|
|
44
50
|
declare global {
|
|
45
51
|
namespace TsED {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/bullmq",
|
|
3
3
|
"description": "BullMQ integration for Ts.ED",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.
|
|
5
|
+
"version": "8.17.0",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"Ts.ED",
|
|
8
8
|
"BullMQ"
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"tslib": "2.7.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@tsed/barrels": "8.
|
|
34
|
-
"@tsed/core": "8.
|
|
35
|
-
"@tsed/di": "8.
|
|
36
|
-
"@tsed/platform-http": "8.
|
|
37
|
-
"@tsed/schema": "8.
|
|
38
|
-
"@tsed/typescript": "8.
|
|
33
|
+
"@tsed/barrels": "8.17.0",
|
|
34
|
+
"@tsed/core": "8.17.0",
|
|
35
|
+
"@tsed/di": "8.17.0",
|
|
36
|
+
"@tsed/platform-http": "8.17.0",
|
|
37
|
+
"@tsed/schema": "8.17.0",
|
|
38
|
+
"@tsed/typescript": "8.17.0",
|
|
39
39
|
"bullmq": "^4.12.3 || ^5.1.1",
|
|
40
40
|
"eslint": "9.12.0",
|
|
41
41
|
"ts-mockito": "^2.6.1",
|