amqp-queue
Amqp job queue with job status query over Redis
Last updated 3 years ago by gongxiancao .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install amqp-queue 
SYNC missed versions from official npm registry.

Use redis store job status, and the data is only used to monitor the job, Use amqp protocol to route/persistant message

  1. On queue setup, it will subscribe the complete/error/progress queue
  2. When saving a job, it will be published to "main" queue, and also save to redis with inactive status,
  3. During the process of the job, redis job status will be updated to active status
  4. If a job is complete, it will be published to the complete queue, which cause the invoke of on "complete" handler
  5. After complete handler invoked, the job is done
  6. If a job failed, it will be published to the error queue, and trigger the on "error" handler
  7. Error handler will update job status on redis
  8. Progress will be both saved to redis and published to progress queue, the on "progress" handler will be triggered then.
  9. Light weight mode can be specified for a job by provide {lightweight: true} as third parameter when creating a job. In this mode, the job does not report any status to redis or queue, which means it is not monitorable.

Current Tags

  • 1.2.4                                ...           latest (3 years ago)

16 Versions

  • 1.2.4                                ...           3 years ago
  • 1.2.3                                ...           3 years ago
  • 1.2.2                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (7)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |