timgit / pg-boss

Queueing jobs in Postgres from Node.js like a boss
MIT License
2.13k stars 158 forks source link

Add `fail([ids], data)` #150

Closed leventov closed 3 years ago

leventov commented 4 years ago

Use case: bulk fail() with an Error object as the reason for the failure.

timgit commented 3 years ago

This feature has actually been in pg-boss for years. I added a test just now to confirm, and I will leave it in the suite for future reference.