From 66741fff7b9e567cdb89c0053b62f0e73702a3cf Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Tue, 26 Feb 2013 11:42:39 +0100 Subject: [PATCH 1/2] Fix bug where workers would not execute builtin functions properly. --- CHANGES.md | 6 ++++++ rq/job.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 3155181a..b4939529 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,9 @@ +### 0.3.7 +(February 26th, 2013) + +- Fixed bug where workers would not execute builtin functions properly. + + ### 0.3.6 (February 18th, 2013) diff --git a/rq/job.py b/rq/job.py index a0367eed..8fc0e3bd 100644 --- a/rq/job.py +++ b/rq/job.py @@ -78,7 +78,7 @@ class Job(object): if inspect.ismethod(func): job._instance = func.im_self job._func_name = func.__name__ - elif inspect.isfunction(func): + elif inspect.isfunction(func) or inspect.isbuiltin(func): job._func_name = '%s.%s' % (func.__module__, func.__name__) else: # we expect a string job._func_name = func From 93ba0b4d6e074a8211bed766384f07b09421e7e9 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Tue, 26 Feb 2013 11:43:31 +0100 Subject: [PATCH 2/2] Bump version to 0.3.7. --- rq/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/version.py b/rq/version.py index 38f3a1da..eead0ef5 100644 --- a/rq/version.py +++ b/rq/version.py @@ -1 +1 @@ -VERSION = '0.3.6' +VERSION = '0.3.7'