https://github.com/loopj/node-sidekiq
Enqueue jobs to sidekiq from your node apps. Closely mirrors the official ruby sidekiq interface and supports job scheduling.
https://github.com/loopj/node-sidekiq
Last synced: about 1 year ago
JSON representation
Enqueue jobs to sidekiq from your node apps. Closely mirrors the official ruby sidekiq interface and supports job scheduling.
- Host: GitHub
- URL: https://github.com/loopj/node-sidekiq
- Owner: loopj
- License: mit
- Created: 2013-02-22T20:37:08.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2017-12-13T18:54:14.000Z (over 8 years ago)
- Last Synced: 2025-04-13T02:47:38.446Z (about 1 year ago)
- Language: CoffeeScript
- Homepage:
- Size: 14.6 KB
- Stars: 103
- Watchers: 3
- Forks: 25
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Add 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
------------
```shell
# Install development dependencies
npm install
# Use grunt to generate the js version (lib/index.js)
grunt
```
Reporting Bugs or Feature Requests
----------------------------------
Please report any bugs or feature requests on the github issues page for this
project here:
Contributing
------------
- [Fork](https://help.github.com/articles/fork-a-repo) the [notifier on github](https://github.com/loopj/node-sidekiq)
- Edit only the files in `src`, lib files are autogenerated
- Commit and push until you are happy with your contribution
- [Make a pull request](https://help.github.com/articles/using-pull-requests)
- Thanks!
License
-------
This is free software released under the MIT License.
See [LICENSE.txt](https://github.com/loopj/node-sidekiq/blob/master/LICENSE.txt) for details.