From bfc3c3d89e71b1cdd25a50b382ad632d2f816e84 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Tue, 24 Jul 2012 11:28:18 +0200 Subject: [PATCH] Add changes to the change log. --- CHANGES.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 4036dba..30399a5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,8 +1,22 @@ ### 0.3.0 (not released) -- Removes the possible ambiguity of passing in a `timeout` argument to - `.enqueue()`. Instead, now use the `.enqueue_call()` method. +- `.enqueue()` does not consume the `timeout` kwarg anymore. Instead, to pass + RQ a timeout value while enqueueing a function, use the explicit invocation + instead: + + q.enqueue(do_something, args=(1, 2), kwargs={'a': 1}, timeout=30) + +- Add a `@job` decorator, which can be used to do Celery-style delayed + invocations: + + from rq.decorators import job + + @job('high', timeout=10) + def some_work(x, y): + return x + y + + some_work.delay(2, 3) ### 0.2.1