|
@@ -29,6 +29,7 @@ extract_exec_options = mattrgetter(
|
|
'queue', 'routing_key', 'exchange',
|
|
'queue', 'routing_key', 'exchange',
|
|
'immediate', 'mandatory', 'priority', 'expires',
|
|
'immediate', 'mandatory', 'priority', 'expires',
|
|
'serializer', 'delivery_mode', 'compression',
|
|
'serializer', 'delivery_mode', 'compression',
|
|
|
|
+ 'timeout', 'soft_timeout',
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
@@ -174,15 +175,15 @@ class Task(object):
|
|
#: If enabled the worker will not store task state and return values
|
|
#: If enabled the worker will not store task state and return values
|
|
#: for this task. Defaults to the :setting:`CELERY_IGNORE_RESULT`
|
|
#: for this task. Defaults to the :setting:`CELERY_IGNORE_RESULT`
|
|
#: setting.
|
|
#: setting.
|
|
- ignore_result = False
|
|
|
|
|
|
+ ignore_result = None
|
|
|
|
|
|
#: When enabled errors will be stored even if the task is otherwise
|
|
#: When enabled errors will be stored even if the task is otherwise
|
|
#: configured to ignore results.
|
|
#: configured to ignore results.
|
|
- store_errors_even_if_ignored = False
|
|
|
|
|
|
+ store_errors_even_if_ignored = None
|
|
|
|
|
|
#: If enabled an email will be sent to :setting:`ADMINS` whenever a task
|
|
#: If enabled an email will be sent to :setting:`ADMINS` whenever a task
|
|
#: of this type fails.
|
|
#: of this type fails.
|
|
- send_error_emails = False
|
|
|
|
|
|
+ send_error_emails = None
|
|
|
|
|
|
#: The name of a serializer that are registered with
|
|
#: The name of a serializer that are registered with
|
|
#: :mod:`kombu.serialization.registry`. Default is `'pickle'`.
|
|
#: :mod:`kombu.serialization.registry`. Default is `'pickle'`.
|
|
@@ -213,7 +214,7 @@ class Task(object):
|
|
#:
|
|
#:
|
|
#: The application default can be overridden using the
|
|
#: The application default can be overridden using the
|
|
#: :setting:`CELERY_TRACK_STARTED` setting.
|
|
#: :setting:`CELERY_TRACK_STARTED` setting.
|
|
- track_started = False
|
|
|
|
|
|
+ track_started = None
|
|
|
|
|
|
#: When enabled messages for this task will be acknowledged **after**
|
|
#: When enabled messages for this task will be acknowledged **after**
|
|
#: the task has been executed, and not *just before* which is the
|
|
#: the task has been executed, and not *just before* which is the
|
|
@@ -487,6 +488,8 @@ class Task(object):
|
|
:keyword eta: Explicit time and date to run the retry at
|
|
:keyword eta: Explicit time and date to run the retry at
|
|
(must be a :class:`~datetime.datetime` instance).
|
|
(must be a :class:`~datetime.datetime` instance).
|
|
:keyword max_retries: If set, overrides the default retry limit.
|
|
:keyword max_retries: If set, overrides the default retry limit.
|
|
|
|
+ :keyword timeout: If set, overrides the default timeout.
|
|
|
|
+ :keyword soft_timeout: If set, overrides the default soft timeout.
|
|
:keyword \*\*options: Any extra options to pass on to
|
|
:keyword \*\*options: Any extra options to pass on to
|
|
meth:`apply_async`.
|
|
meth:`apply_async`.
|
|
:keyword throw: If this is :const:`False`, do not raise the
|
|
:keyword throw: If this is :const:`False`, do not raise the
|