Skip to content

Commit

Permalink
docs(guide): fix queueEvents.on failed description (#2420)
Browse files Browse the repository at this point in the history
  • Loading branch information
kerolloz authored Feb 14, 2024
1 parent 4c54873 commit 415f389
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/gitbook/guide/workers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ import { QueueEvents } from 'bullmq';
const queueEvents = new QueueEvents('Paint');

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

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

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

0 comments on commit 415f389

Please sign in to comment.