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: