Skip to content

Commit

Permalink
Merge pull request #384 from MattGirolami/patch-1
Browse files Browse the repository at this point in the history
Fix README for handling bulk push errors
  • Loading branch information
jbielick authored Jan 9, 2023
2 parents 8e81117 + 5847a57 commit e1d9509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const faktory = require("faktory-worker");
let rejected = await client.pushBulk([job1, job2]);

// rejected is a dictionary of [jid]: { payload, reason } if any failed to enqueue
for (const [jid, { payload, reason }] of Object.entries(obj)) {
for (const [jid, { payload, reason }] of Object.entries(rejected)) {
console.error(`Faild to push job for image ${payload.args[0].id}`);
}

Expand Down

0 comments on commit e1d9509

Please sign in to comment.