From 7e1f837174f953be31ed6ab3b159869182faf34a Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Wed, 25 Jul 2012 09:11:13 +0200 Subject: [PATCH] Add changes to change log. --- CHANGES.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 30399a5..75f76be 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,12 +10,20 @@ - Add a `@job` decorator, which can be used to do Celery-style delayed invocations: + from redis import Redis from rq.decorators import job - @job('high', timeout=10) + # Connect to Redis + redis = Redis() + + @job('high', timeout=10, connection=redis) def some_work(x, y): return x + y + Then, in another module, you can call `some_work`: + + from foo.bar import some_work + some_work.delay(2, 3)