diff --git a/CHANGES.md b/CHANGES.md index 3155181..b493952 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 a0367ee..8fc0e3b 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