Enqueue sidekiq jobs from your node apps.
npm install sidekiqAdd Jobs to Sidekiq from Node.js
================================
Enqueue jobs to sidekiq from your node apps. Closely mirrors the official
ruby sidekiq interface and supports job scheduling.
Installation
------------
``shell`
npm install sidekiq --save
Usage
-----
`javascript
// Require the module
Sidekiq = require("sidekiq");
// Construct a sidekiq object with your redis connection and optional namespace
sidekiq = new Sidekiq(redisCon, process.env.NODE_ENV);
// Add a job to sidekiq
sidekiq.enqueue("WorkerClass", ["argument", "array"], {
retry: false,
queue: "critical"
});
// Schedule a job in sidekiq
sidekiq.enqueue("WorkerClass", ["some", "args"], {
at: new Date(2013, 11, 1)
});
`
How to Build
------------
`shellInstall development dependencies
npm install
Reporting Bugs or Feature Requests
----------------------------------
Please report any bugs or feature requests on the github issues page for this
project here:
Contributing
------------
- Fork the notifier on github
- Edit only the files in
src`, lib files are autogenerated
License
-------
This is free software released under the MIT License.
See LICENSE.txt for details.