For such a task:
from celery.decorators import task @task() def add(x, y): if not x or not y: raise Exception("test error") return self.wait_until_server_responds(
if it throws an exception, and I want to repeat it from the side of the daemon, how to apply the exponential indent algorithm, i.e. after 2^2, 2^3,2^4 , etc. seconds?
It also retries from the server, so if the worker is killed, then the next worker that appears will perform the retry task?
python celery django-celery
Quintin Par Mar 16 '12 at 3:28 2012-03-16 03:28
source share