Skip to content

Very Simple Node.js Library which enqueues to Sidekiq

License

Notifications You must be signed in to change notification settings

heygambo/coffeekiq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoffeeKiq

Coffeescript/Node.js Library to enqueue jobs to the Sidekiq Queue.

This is a very trivial implementation. I will implement more features when I need them. Feel free to contribute.

USAGE

You can add coffeekiq: "~>0.0.1" into your package.json or use npm install coffeekiq

# Creates an instance of CoffeeKiq
CoffeeKiq = require('coffeekiq').CoffeeKiq

# Without Redis AUTH
coffeekiq = new CoffeeKiq "redis_port", "redis_host"

# With Redis AUTH
coffeekiq = new CoffeeKiq "redis_port", "redis_host", "redis_password"

# Enqueues a Job to redis namespace: "" and retry: false
coffeekiq.perform 'queue', 'WorkerClass', ['arg1', 'arg2']

# Enqueues a Job to redis with namespace: "myapp:staging" and retry: true
coffeekiq.perform 'queue', 'WorkerClass', ['arg1', 'arg2'],
  namespace: "myapp:staging"
  retry: true

About

Very Simple Node.js Library which enqueues to Sidekiq

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published