I ran Celery in many projects in production over the past 10 years; I would not recommend it. It is mostly a constant fight even though it is the first thing most people grab when they have a Django stack.
I totally agree, I would not recommend using Celery. The last time I used Celery was in 2019 and it was a mess. The memory leak issue is still open https://github.com/celery/celery/issues/4843 to this day.
Celery in production: Three more years of fixing bugs
31–40 of 63 posts
Re: Celery in production: Three more years of fixing bugs
#32Celery is hard to maintain, but the benefits are definitely worth it, and it’s the most mature cross language stack. I can have a celery job sent or received from any major language.
I think the only reason people pick another option is that that start of by only using python in the first place.
Re: Celery in production: Three more years of fixing bugs
#33Re: Celery in production: Three more years of fixing bugs
#34RQ [0] (Python-based with Redis backend) is another option; works great. [0] https://python-rq.org/
I love RQ. Nothing but good experiences using it several times over the past ~6 years. However if you are doin mission critical work in your queue that cannot be replayed Celery is still the best python flavored option IMO
Re: Celery in production: Three more years of fixing bugs
#35Ran beanstalkd in small deployments, rq in others, and nsq for real queueing but at a small scale.
Re: Celery in production: Three more years of fixing bugs
#36At risk of being overly negative, my experience with celery has been that it is complex and hard to configure and debug.
I chose a simple queueing mechanism instead of using Celery, and for sending emails I was so frustrated by Celery that I wrote the Arnie SMTP buffer server (in 100 lines of Python): https://github.com/bootrino/arniesmtpbufferserver
Re: Celery in production: Three more years of fixing bugs
#37Earlier quoted context omitted.
I've been running four separate installs of Celery since 2014 or so processing about 10-20 million jobs a day, using reddit as a broker, and with about 100 worker instances per install. It just works, but I don't use Celery results or any esoteric features.
Reddit :)
Re: Celery in production: Three more years of fixing bugs
#38I ran Celery in many projects in production over the past 10 years; I would not recommend it. It is mostly a constant fight even though it is the first thing most people grab when they have a Django stack.
I've been running four separate installs of Celery since 2014 or so processing about 10-20 million jobs a day, using reddit as a broker, and with about 100 worker instances per install. It just works, but I don't use Celery results or any esoteric features.
I did have to build my own solutions for things like priority queues, but it was much clearer and testable.
Re: Celery in production: Three more years of fixing bugs
#39I ran Celery in many projects in production over the past 10 years; I would not recommend it. It is mostly a constant fight even though it is the first thing most people grab when they have a Django stack.
Re: Celery in production: Three more years of fixing bugs
#40I ran Celery in many projects in production over the past 10 years; I would not recommend it. It is mostly a constant fight even though it is the first thing most people grab when they have a Django stack.
What would you recommend instead?
These comments say better than I can why I like it