0.0.8 • Published 9 years ago

coffeekiqcron v0.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

coffeekiqcron

Just an extension for https://github.com/nerdyglasses/coffeekiq/blob/master/README.md

##usage npmRequire('coffeekiqcron').CoffeeKiqCron

USAGE

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

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

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

# With Redis AUTH
coffeekiq = new CoffeeKiqCron "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

# Finds a stored cron process
coffeekiq.find 'my_job', (err, result)->
  console.log err if err?
  console.dir result

# Enqueue a stored cron process
coffeekiq.enqueue 'my_job'
0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago