Celery is rerunning completed tasks over and over

30 views
Skip to first unread message

abhishek pareek

unread,
Dec 5, 2014, 5:30:41 AM12/5/14
to celery...@googlegroups.com
I've a python celery-redis queue processing uploads and downloads worth gigs and gigs of data at a time.

Few of the uploads takes upto few hours. However once such a task finishes, I'm witnessing this bizarre celery behavior that the celery scheduler is rerunning the just concluded task again by sending it again to the worker (I'm running a single worker) And it just happened upto 4 times on the same task! (My CELERYD_PREFETCH_MULTIPLIER is set to 1)

Can someone help me debug why is this happening and how can I prevent it?

The tasks are definitely finishing cleanly with no errors reported just that these are extremely long running tasks.

Loic Duros

unread,
Dec 5, 2014, 9:12:34 AM12/5/14
to celery...@googlegroups.com
Just curious: Do you use CELERY_ACKS_LATE?
I've seen this similar behavior when CELERY_ACKS_LATE was on and that the task would exceed the limit before being fully completed.

--
You received this message because you are subscribed to the Google Groups "celery-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to celery-users...@googlegroups.com.
To post to this group, send email to celery...@googlegroups.com.
Visit this group at http://groups.google.com/group/celery-users.
For more options, visit https://groups.google.com/d/optout.



--
Loic J. Duros - http://lduros.net

Ask Solem

unread,
Dec 5, 2014, 9:18:56 AM12/5/14
to celery...@googlegroups.com
Did you read about the Redis caveats?  More specifically the visibility_timeout setting here:

abhishek pareek

unread,
Dec 8, 2014, 2:27:22 AM12/8/14
to celery...@googlegroups.com
Thanks Sol! I'll try this right now... 

abhishek pareek

unread,
Dec 8, 2014, 2:28:44 AM12/8/14
to celery...@googlegroups.com
no I'm not using CELERY_ACKS_LATE here. I think Sols' answer should help though.
Reply all
Reply to author
Forward
0 new messages