Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Enqueue jobs to sidekiq from your node apps. Closely mirrors the official ruby sidekiq interface and supports job scheduling.
CoffeeScript JavaScript
branch: master

v1.1.1

latest commit 1aee24b3e1
@loopj authored
Failed to load latest commit information.
lib fix bug in callback binding
src fix bug in callback binding
.gitignore v1.0.1
CHANGELOG.md v1.1.1
Gruntfile.coffee Initial commit
LICENSE.txt Update readme, add license
README.md Bump version, update readme
package.json v1.1.1

README.md

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

npm install sidekiq --save

Usage

// 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

# 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:

https://github.com/loopj/node-sidekiq/issues

Contributing

License

This is free software released under the MIT License. See LICENSE.txt for details.

Something went wrong with that request. Please try again.