|
@@ -338,7 +338,6 @@ class Task(object):
|
|
This class method can be defined to do additional actions when
|
|
This class method can be defined to do additional actions when
|
|
the task class is bound to an app.
|
|
the task class is bound to an app.
|
|
"""
|
|
"""
|
|
- pass
|
|
|
|
|
|
|
|
@classmethod
|
|
@classmethod
|
|
def _get_app(cls):
|
|
def _get_app(cls):
|
|
@@ -553,7 +552,6 @@ class Task(object):
|
|
kwargs (Dict): Task keyword arguments.
|
|
kwargs (Dict): Task keyword arguments.
|
|
options (Dict): Task execution options.
|
|
options (Dict): Task execution options.
|
|
"""
|
|
"""
|
|
- pass
|
|
|
|
|
|
|
|
def signature_from_request(self, request=None, args=None, kwargs=None,
|
|
def signature_from_request(self, request=None, args=None, kwargs=None,
|
|
queue=None, **extra_options):
|
|
queue=None, **extra_options):
|
|
@@ -904,7 +902,6 @@ class Task(object):
|
|
Returns:
|
|
Returns:
|
|
None: The return value of this handler is ignored.
|
|
None: The return value of this handler is ignored.
|
|
"""
|
|
"""
|
|
- pass
|
|
|
|
|
|
|
|
def on_retry(self, exc, task_id, args, kwargs, einfo):
|
|
def on_retry(self, exc, task_id, args, kwargs, einfo):
|
|
"""Retry handler.
|
|
"""Retry handler.
|
|
@@ -921,7 +918,6 @@ class Task(object):
|
|
Returns:
|
|
Returns:
|
|
None: The return value of this handler is ignored.
|
|
None: The return value of this handler is ignored.
|
|
"""
|
|
"""
|
|
- pass
|
|
|
|
|
|
|
|
def on_failure(self, exc, task_id, args, kwargs, einfo):
|
|
def on_failure(self, exc, task_id, args, kwargs, einfo):
|
|
"""Error handler.
|
|
"""Error handler.
|
|
@@ -938,7 +934,6 @@ class Task(object):
|
|
Returns:
|
|
Returns:
|
|
None: The return value of this handler is ignored.
|
|
None: The return value of this handler is ignored.
|
|
"""
|
|
"""
|
|
- pass
|
|
|
|
|
|
|
|
def after_return(self, status, retval, task_id, args, kwargs, einfo):
|
|
def after_return(self, status, retval, task_id, args, kwargs, einfo):
|
|
"""Handler called after the task returns.
|
|
"""Handler called after the task returns.
|
|
@@ -954,7 +949,6 @@ class Task(object):
|
|
Returns:
|
|
Returns:
|
|
None: The return value of this handler is ignored.
|
|
None: The return value of this handler is ignored.
|
|
"""
|
|
"""
|
|
- pass
|
|
|
|
|
|
|
|
def add_trail(self, result):
|
|
def add_trail(self, result):
|
|
if self.trail:
|
|
if self.trail:
|