@midwayjs/bull 4.0.0 → 4.0.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/dist/framework.js +2 -2
- package/index.d.ts +1 -1
- package/package.json +4 -4
package/dist/framework.js
CHANGED
|
@@ -140,7 +140,7 @@ let BullFramework = class BullFramework extends core_1.BaseFramework {
|
|
|
140
140
|
},
|
|
141
141
|
},
|
|
142
142
|
}, async () => {
|
|
143
|
-
ctx.logger.
|
|
143
|
+
ctx.logger.debug(`start process job ${job.id} from ${processor.name}`);
|
|
144
144
|
const isPassed = await this.app
|
|
145
145
|
.getFramework()
|
|
146
146
|
.runGuard(ctx, processor, 'execute');
|
|
@@ -152,7 +152,7 @@ let BullFramework = class BullFramework extends core_1.BaseFramework {
|
|
|
152
152
|
return await core_1.Utils.toAsyncFunction(service.execute.bind(service))(job.data, job);
|
|
153
153
|
});
|
|
154
154
|
const result = await Promise.resolve(await fn(ctx));
|
|
155
|
-
ctx.logger.
|
|
155
|
+
ctx.logger.debug(`complete process job ${job.id} from ${processor.name}`);
|
|
156
156
|
return result;
|
|
157
157
|
});
|
|
158
158
|
}
|
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as bull from 'bull';
|
|
|
2
2
|
export * from './dist/index';
|
|
3
3
|
export { Job, JobId } from 'bull';
|
|
4
4
|
|
|
5
|
-
declare module '@midwayjs/core
|
|
5
|
+
declare module '@midwayjs/core' {
|
|
6
6
|
interface MidwayConfig {
|
|
7
7
|
bull?: {
|
|
8
8
|
defaultQueueOptions?: bull.QueueOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/bull",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "midway component for bull",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
],
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@midwayjs/core": "^4.0.
|
|
28
|
-
"@midwayjs/mock": "^4.0.
|
|
27
|
+
"@midwayjs/core": "^4.0.1",
|
|
28
|
+
"@midwayjs/mock": "^4.0.1"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"bull": "4.16.5"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=20"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "fcea8a9fcbfa39a4799ac19d072812c1578dcf8e"
|
|
37
37
|
}
|