Skip to content

Instantly share code, notes, and snippets.

@heygambo
Created February 16, 2013 12:51
Show Gist options
  • Select an option

  • Save heygambo/4966826 to your computer and use it in GitHub Desktop.

Select an option

Save heygambo/4966826 to your computer and use it in GitHub Desktop.
How to use CoffeeKiq
# Creates an instance of CoffeeKiq
{CoffeeKiq} = require('coffeekiq')
coffeekiq = new CoffeeKiq "redis_port", "redis_host"
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment