0.0.7 • Published 10 years ago

amqp-retry v0.0.7

Weekly downloads
4
License
-
Repository
github
Last release
10 years ago

node-amqp-retry

Retry failed jobs, with exponential backoff (or custom) strategy.

Install

npm install amqp-retry

Usage

Old code, without retry logic

queue.subscribe(options, handler);

New, smart code

var retry = require('amqp-retry');
queue.subscribe(options, retry(initialDelay, limit, handler));

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.

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago