Use the manage.py command described here: http://pypi.python.org/pypi/django-celery to start the worker (I use supervisord to manage the process). If you only start the worker on a single machine, then you'll only have one worker. This can be the same machine that runs your webserver.
_Nik On 12/10/2012 11:39 AM, Nuno Khan wrote: > my problem is exactly setting up 1 worker.. can u provide some code > please? > > > On Mon, Dec 10, 2012 at 6:48 PM, Nikolas Stevenson-Molnar > <[email protected] <mailto:[email protected]>> wrote: > > You could use a separate queue for these tasks, and set up a > single worker for that queue. > > _Nik > > On 12/10/2012 8:20 AM, psychok7 wrote: >> >> So I have this 2 applications connected with a REST API (json >> messages). One written in Django and the other in Php. I have an >> exact database replica on both sides (using mysql). >> >> When i press "submit" on one of them, i want that data to be >> saved on the current app database, and start a cron job with >> celery/redis to update the remote database for the other app >> using rest. >> >> /*My question is, how do i attribute the same worker to my tasks >> in order to keep a FIFO order?*/ >> >> I need my data to be consistent and FIFO is really important. >> >> -- >> You received this message because you are subscribed to the >> Google Groups "Django users" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/django-users/-/1JR6HYArsgQJ. >> To post to this group, send email to >> [email protected] <mailto:[email protected]>. >> To unsubscribe from this group, send email to >> [email protected] >> <mailto:[email protected]>. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google > Groups "Django users" group. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > To unsubscribe from this group, send email to > [email protected] > <mailto:django-users%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > > > -- > Nuno Khan > Software Engineer > Cellphone : (+351) 962826983 > Email: [email protected] <mailto:[email protected]> > Url: http://www.linkedin.com/pub/nuno-khan/29/132/6b2 > > > -- > You received this message because you are subscribed to the Google > Groups "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

