node-amqp-retry
Retry failed jobs, with exponential backoff (or custom) strategy.
Install
npm install amqp-retry
Usage
Old code, without retry logic
queue;
New, smart code
var retry = ;queue;
If handler throws an error, the message will be requeued with some delay (uses amqp-schedule
internally).
You can explicitly requeue the job with job.retry()
. See examples for details.