Skip to content

Commit

Permalink
Document the local-only behavior of Task.retry() max_retries
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-pearce committed Oct 15, 2015
1 parent c0fc421 commit 96fc21e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions celery/app/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,12 @@ def retry(self, args=None, kwargs=None, exc=None, throw=True,
:keyword countdown: Time in seconds to delay the retry for.
:keyword eta: Explicit time and date to run the retry at
(must be a :class:`~datetime.datetime` instance).
:keyword max_retries: If set, overrides the default retry limit.
A value of :const:`None`, means "use the default", so if you want
infinite retries you would have to set the :attr:`max_retries`
attribute of the task to :const:`None` first.
:keyword max_retries: If set, overrides the default retry limit for
this execution. Changes to this parameter do not propagate to
subsequent task retry attempts. A value of :const:`None`, means
"use the default", so if you want infinite retries you would
have to set the :attr:`max_retries` attribute of the task to
:const:`None` first.
:keyword time_limit: If set, overrides the default time limit.
:keyword soft_time_limit: If set, overrides the default soft
time limit.
Expand Down

0 comments on commit 96fc21e

Please sign in to comment.