tag:blogger.com,1999:blog-7663029716914672257.post6797235892604783387..comments2023-04-01T09:17:05.512-04:00Comments on Chase Seibert | Blog: Django/Celery Quickstart (or, how I learned to stop using cron and love celery)Chase Seiberthttp://www.blogger.com/profile/01426857605067814174noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-7663029716914672257.post-54601175521722483212012-05-25T05:39:14.761-04:002012-05-25T05:39:14.761-04:00Thanks for the instructions. A suggestion: " ...Thanks for the instructions. A suggestion: " This guide starts out using kombu, which is backed by the database Django is already using." makes it seem like kombu is backed by the Django database. My understanding is that Kombu is implemented with a variety of transports, one of which is Django. Found it a bit confusing as a messaging newbie.Tarashttps://www.blogger.com/profile/04909683782190521955noreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-78994580223629388892012-03-27T11:06:29.502-04:002012-03-27T11:06:29.502-04:00Thank you for the up-to-date instructions, and for...Thank you for the up-to-date instructions, and for making celery <em>simple</em>.<br /><br />For a lightweight task queue with cron support that is easily integrated to Django, you also have two projects by Charles Leifer: the django-utils queue, which has no hard dependencies, and Huey, which currently requires Redis.<br /><br />To keep configuration minimal, django-supervisor makes it easy and convenient to spawn the queue engine along with your choice of runserver or wsgi container.Tobunoreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-31338827863213894332012-03-02T10:38:55.574-05:002012-03-02T10:38:55.574-05:00Good catch Andrew. I just updated the post.Good catch Andrew. I just updated the post.Chase Seiberthttps://www.blogger.com/profile/01426857605067814174noreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-82350857970560076802011-04-23T06:13:19.404-04:002011-04-23T06:13:19.404-04:00This blog, whilst insightful, is sadly out of date...This blog, whilst insightful, is sadly out of date.<br /><br />ghettoq is deprecated and no longer compatible with djcelery. kombu is used instead.Andrewhttp://blog.adlibre.orgnoreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-23376113117199826302010-11-30T22:54:05.011-05:002010-11-30T22:54:05.011-05:00Huh... good catch Kiuz. You can also add the follo...Huh... good catch Kiuz. You can also add the following to your settings.py:<br /><br />CELERY_IMPORTS = ("tasks", )Chase Seiberthttps://www.blogger.com/profile/01426857605067814174noreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-16150013444240367232010-11-25T06:04:59.138-05:002010-11-25T06:04:59.138-05:00At this command
1. sudo ./manage.py celeryd -v 2 -...At this command<br />1. sudo ./manage.py celeryd -v 2 -B -s celery -E -l INFO <br /><br />You must add "-I tasks" to load tasks.py file ...Unknownhttps://www.blogger.com/profile/11319306531894489564noreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-69604467568898779592010-11-09T13:10:08.286-05:002010-11-09T13:10:08.286-05:00I was just looking for a simple way to use Celery....I was just looking for a simple way to use Celery. Their documentation frankly *sucks* ("First Steps with Celery" entices you with how easy it is without showing you how to set it up), unless you care to learn everything about it from the get-go. So even though I intend to use celery for queuing tasks rather than periodic ones (for now, anyway), your post should be very useful (assuming no snags), thank you for the short start-to-finish steps. I'm glad I don't have to bother with RabbitMQ for now.Danhttps://www.blogger.com/profile/17464783227690703857noreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-51535903248942233682010-10-19T07:12:53.299-04:002010-10-19T07:12:53.299-04:00@rozita
See this init script here:
http://github...@rozita<br /><br />See this init script here:<br /><br />http://github.com/ask/celery/blob/master/contrib/generic-init.d/celeryd<br /><br />Here's my /etc/default/celeryd configuration file, which sets up Celery for a Django project in /opt/Opal/release:<br />http://pastie.org/1216111Unknownhttps://www.blogger.com/profile/07433689318562592843noreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-62273485796322011132010-10-10T02:24:39.846-04:002010-10-10T02:24:39.846-04:00Thanks a lot for your good article. Would you plea...Thanks a lot for your good article. Would you please guide me how I can setup django-celery on a production server? I want to know how celeryd can be started automatically without any need to use manage.py manually.rozitahttps://www.blogger.com/profile/01994060618922418001noreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-34334051498680443832010-10-06T11:42:47.038-04:002010-10-06T11:42:47.038-04:00Cool — this is exactly what I was looking for. Tha...Cool — this is exactly what I was looking for. Thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-20899304976876357932010-07-20T11:01:39.784-04:002010-07-20T11:01:39.784-04:00Thanks - there was a problem with Django 1.2.1 + d...Thanks - there was a problem with Django 1.2.1 + djcelery 2.0.1 + ghettoq 0.4.0 that was fixed with ghettoq 0.4.1 today.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-78378539454601290782010-07-20T10:19:07.760-04:002010-07-20T10:19:07.760-04:00I am using Django 1.1.1, djcelery 2.0.0 and ghetto...I am using Django 1.1.1, djcelery 2.0.0 and ghettoq-0.1.2Chase Seiberthttps://www.blogger.com/profile/01426857605067814174noreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-81500402033275387762010-07-19T18:14:44.702-04:002010-07-19T18:14:44.702-04:00What versions of djcelery and ghettoq were you usi...What versions of djcelery and ghettoq were you using? There have been updates recently, and since I can't seem to get your simple example to work, I wonder if something broke.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-12862142838460226972010-07-16T21:40:03.722-04:002010-07-16T21:40:03.722-04:00Awesome article. I think this is just the kick I ...Awesome article. I think this is just the kick I needed to get started playing with celery.<br /><br />I really appreciated the way this was written - starting with the simplest thing that could work and then prompting to read on and expand on your own.<br /><br />I look forward to reading more!Zach Petershttp://thehelpfulhacker.net/noreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-6634889693024637232010-07-16T21:01:17.097-04:002010-07-16T21:01:17.097-04:00Thanks for the nice write up. It would have saved ...Thanks for the nice write up. It would have saved me a few hours if it had been posted a week earlier. Then again I used RabbitMQ but I have another project where ghettoq might be useful so that is a useful option that I did not know about.<br /><br />Here is a RabbotMQ tip: Note that you need to process a given queue at least once before events sent to that queue will show up in the standard rabbit commands that list queues, the number of queued events and such.Rockhttps://www.blogger.com/profile/12360905410350740753noreply@blogger.comtag:blogger.com,1999:blog-7663029716914672257.post-22078842147715704702010-07-16T17:24:55.217-04:002010-07-16T17:24:55.217-04:00Thanks for your article pointing that! I'll ce...Thanks for your article pointing that! I'll certainly consider using celery instead of cron on my next project.Tiago S.noreply@blogger.com