Created
February 16, 2013 12:51
-
-
Save heygambo/4966826 to your computer and use it in GitHub Desktop.
How to use CoffeeKiq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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