| 36 | } |
| 37 | |
| 38 | @Processor('test') |
| 39 | class QueueTask1 { |
| 40 | @MainApp() |
| 41 | app: Application; |
| 42 | |
| 43 | @Inject() |
| 44 | logger; |
| 45 | |
| 46 | async execute(params) { |
| 47 | this.logger.info(`====>QueueTask execute`); |
| 48 | this.app.setAttr(`queueConfig`, JSON.stringify(params)); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | const app = await createLightApp({ |
| 53 | imports: [ |