31 May 2012 16:59
tasks aren't executed under some conditions
Hi all! First of all our setup: celery runs on a separate ec2 64-bit instance under supervisor and uses eventlet + redis as a backend. We have one periodic task with 2 mins interval that may produce a lot of regular tasks. After some time the tasks stop to execute and only this is in logs [2012-05-31 14:40:37,438: INFO/Beat] Scheduler: Sending due task xxx.tasks.periodic_updates [2012-05-31 14:42:37,525: INFO/Beat] Scheduler: Sending due task xxx.tasks.periodic_updates [2012-05-31 14:44:37,625: INFO/Beat] Scheduler: Sending due task xxx.tasks.periodic_updates [2012-05-31 14:46:37,715: INFO/Beat] Scheduler: Sending due task xxx.tasks.periodic_updates [2012-05-31 14:48:37,818: INFO/Beat] Scheduler: Sending due task xxx.tasks.periodic_updates [2012-05-31 14:50:37,854: INFO/Beat] Scheduler: Sending due task xxx.tasks.periodic_updates [2012-05-31 14:52:37,958: INFO/Beat] Scheduler: Sending due task xxx.tasks.periodic_updates maybe related but I don't have many proofs - I suspect it somehow related to a number of exceptions regular tasks throw. I noticed that after 4 raised exceptions (i.e. 4 regular tasks completed with an error) celery switches to this "dead" mode looking into redis I see that its own queue grows by 1 for every periodic task (every 2 mins)(Continue reading)
RSS Feed