From 62383df29b99e4d375bb7fe79b195f6b23880be9 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Fri, 25 Sep 2015 13:16:37 -0700 Subject: [PATCH] [Py3] Fixes docs build on py3 --- celery/app/task.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/celery/app/task.py b/celery/app/task.py index f2fe11fae1f..e0779da11f6 100644 --- a/celery/app/task.py +++ b/celery/app/task.py @@ -230,6 +230,9 @@ class Task(object): #: Default task expiry time. expires = None + #: Task request stack, the current request will be the topmost. + request_stack = None + #: Some may expect a request to exist even if the task has not been #: called. This should probably be deprecated. _default_request = None @@ -466,7 +469,7 @@ def apply_async(self, args=None, kwargs=None, task_id=None, producer=None, except AttributeError: pass else: - check_arguments(*args or (), **kwargs or {}) + check_arguments(*(args or ()), **(kwargs or {})) app = self._get_app() if app.conf.CELERY_ALWAYS_EAGER: