Skip to content

Enqueue jobs to sidekiq from your node apps. Closely mirrors the official ruby sidekiq interface and supports job scheduling.

License

Notifications You must be signed in to change notification settings

BunHouth/node-sidekiq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-client --save

Usage

// Require the module
Sidekiq = require("sidekiq-client");

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

Reporting Bugs or Feature Requests

Please report any bugs or feature requests on the github issues page for this project here:

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

Contributing

License

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

About

Enqueue jobs to sidekiq from your node apps. Closely mirrors the official ruby sidekiq interface and supports job scheduling.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%