We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c49af51 + d1b3bde commit b6e1227Copy full SHA for b6e1227
content/techniques/queues.md
@@ -218,10 +218,10 @@ import { Job } from 'bullmq';
218
export class AudioConsumer extends WorkerHost {
219
async process(job: Job<any, any, string>): Promise<any> {
220
let progress = 0;
221
- for (i = 0; i < 100; i++) {
+ for (let i = 0; i < 100; i++) {
222
await doSomething(job.data);
223
progress += 1;
224
- await job.progress(progress);
+ await job.updateProgress(progress);
225
}
226
return {};
227
0 commit comments