Skip to content

Commit 415f389

Browse files
authoredFeb 14, 2024··
docs(guide): fix queueEvents.on failed description (#2420)
1 parent 4c54873 commit 415f389

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎docs/gitbook/guide/workers/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ import { QueueEvents } from 'bullmq';
8484
const queueEvents = new QueueEvents('Paint');
8585

8686
queueEvents.on('completed', ({ jobId: string, returnvalue: any }) => {
87-
// Called every time a job is completed in any worker.
87+
// Called every time a job is completed by any worker.
8888
});
8989

9090
queueEvents.on('failed', ({ jobId: string, failedReason: string }) => {
91-
// jobId received a progress event
91+
// Called whenever a job is moved to failed by any worker.
9292
});
9393

9494
queueEvents.on('progress', ({jobId: string, data: number | object}) => {

0 commit comments

Comments
 (0)
Please sign in to comment.