News for hackers. Stuff that matters.
Re:Celery in production: Three more years of fixing bugs by tluyben2 on Saturday March 05, 2022 @02:42PM (#30571159)
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.
Re:Celery in production: Three more years of fixing bugs by js2 on Saturday March 05, 2022 @09:52PM (#30574576)
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.
Re:Celery in production: Three more years of fixing bugs by crucialfelix on Sunday March 06, 2022 @01:54AM (#30575599)
I used it for 10 years myself. Also learned the hard way not to use 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 by loloquwowndueo on Saturday March 05, 2022 @10:16PM (#30574708)
Reddit :)
Re:Celery in production: Three more years of fixing bugs by Scarblac on Sunday March 06, 2022 @05:05AM (#30576396)
Posts to a subreddit as things in the queue, comments for results and feedback like progress percentages, up and down votes for priorities...
Re:Celery in production: Three more years of fixing bugs by js2 on Sunday March 06, 2022 @09:17AM (#30577738)
That's embarrassing! I'd like to blame autocorrect but I doubt it...
Re:Celery in production: Three more years of fixing bugs by sergiomattei on Sunday March 06, 2022 @01:46AM (#30575561)
Did we just witness a Freudian slip? :)
Re:Celery in production: Three more years of fixing bugs by Operyl on Sunday March 06, 2022 @02:45AM (#30575790)
Or overzealous phone auto correct. Redis used to auto correct to Reddit on an old android device of mine heh.
Re:Celery in production: Three more years of fixing bugs by hoesephgerrible on Sunday March 06, 2022 @05:14AM (#30576430)
I can't stop giggling. ;)
Re:Celery in production: Three more years of fixing bugs by alesso_x on Saturday March 05, 2022 @10:54PM (#30574895)
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.
Re:Celery in production: Three more years of fixing bugs by postpawl on Sunday March 06, 2022 @01:02AM (#30575403)
There has been a lot of progress on fixing memory leaks recently: https://www.paulsprogrammingnotes.com/2021/12/python-memory-...
Re:Celery in production: Three more years of fixing bugs by matsemann on Sunday March 06, 2022 @05:50AM (#30576599)
IMO using python at all for this kinda setup with lots of workers is kinda crazy. As there is no usable threading, each worker need its own process. And as the article says, that's a couple of hundred mb of ram per worker. But in other languages, you could have hundreds of threads doing work with the same resources.
Re:Celery in production: Three more years of fixing bugs by ddorian43 on Tuesday March 08, 2022 @04:43AM (#30598192)
You can have async workers or gevent workers in python.
Re:Celery in production: Three more years of fixing bugs by gregsadetsky on Saturday March 05, 2022 @08:51PM (#30574193)
What would you recommend instead?
Re:Celery in production: Three more years of fixing bugs by wryun on Saturday March 05, 2022 @10:30PM (#30574782)
I'm also in the 'anything but Celery' camp:

https://dramatiq.io/motivation.html

If you're backing onto something like SQS or Rabbit (Redis is a bit trickier), it's not the worst thing to hand-roll either. Then you understand exactly what trade-offs you're making.

Re:Celery in production: Three more years of fixing bugs by ungawatkt on Saturday March 05, 2022 @08:59PM (#30574255)
I had a good time with dramatiq+apecheduler, much more bare bones and less out of the box, but when something went wrong is was pretty easy to understand and work around.
Re:Celery in production: Three more years of fixing bugs by staticautomatic on Saturday March 05, 2022 @09:07PM (#30574316)
Dramatiq is great.
Re:Celery in production: Three more years of fixing bugs by akvadrako on Sunday March 06, 2022 @04:28AM (#30576246)
For under 1000 messages per second, PostgreSQL is great at queues.
Re:Celery in production: Three more years of fixing bugs by rtpg on Sunday March 06, 2022 @03:53AM (#30576102)
We have transitioned over to Dramatiq.

It has its own set of problems (mostly from starting at the set of "we will remove all of Celery features" and then going from there), in particular its logging policies are extremely frustrating and we have had to work around them. But the code is so simple in general that we get good compensation for that.

I personally would have liked to use dq instead but that's mostly an aesthetics thing.

Re:Celery in production: Three more years of fixing bugs by porker on Sunday March 06, 2022 @02:40AM (#30575767)
Beanstalkd?

These comments say better than I can why I like it

https://news.ycombinator.com/item?id=27483167

https://news.ycombinator.com/item?id=24714198

Re:Celery in production: Three more years of fixing bugs by 411111111111111 on Sunday March 06, 2022 @03:30AM (#30575993)
Celery is not a broker daemon, it's an abstraction for them. You can use it with various brokers and some kv databases such as redis.

And yes, celery also supports beanstalk, so it's clearly not an alternative to it

http://docs.celeryproject.org/en/latest/getting-started/brok...

Re:Celery in production: Three more years of fixing bugs by johtso on Sunday March 06, 2022 @04:51AM (#30576318)
Currently exploring using arq, a successor to rq for my next project.
Re:Celery in production: Three more years of fixing bugs by odiroot on Sunday March 06, 2022 @11:25AM (#30578627)
What have you switched to?
Re:Celery in production: Three more years of fixing bugs by the_cat_kittles on Saturday March 05, 2022 @09:28PM (#30574444)
man... couldnt agree more.
Re:Celery in production: Three more years of fixing bugs by sillycube on Sunday March 06, 2022 @02:29AM (#30575737)
Do you have any suggestions for alternatives?