MCPcopy
hub / github.com/midwayjs/midway / PriorityTask

Class PriorityTask

packages/bullmq/test/index.test.ts:158–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 const executionOrder: number[] = [];
157
158 @Processor('priorityTask')
159 class PriorityTask implements IProcessor {
160
161 async execute(params: { priority: number }): Promise<void> {
162 executionOrder.push(params.priority);
163 }
164 }
165
166 const app = await createLightApp({
167 imports: [bullmq],

Callers

nothing calls this directly

Calls 1

ProcessorFunction · 0.90

Tested by

no test coverage detected