@Felipe Can you show an example what you mean by init script?
On Thursday, 17 September 2015 15:18:02 UTC+2, Felipe Tomaz wrote: > > I don't like to put the commands on supervisor. You can create an init > script. > > -- > Felipe Arenhardt Tomaz > Systems Developer > Curitiba - Paraná > www.felipetomaz.com > > On Thu, Sep 17, 2015 at 4:48 AM, Erol Merdanović <zase...@gmail.com > <javascript:>> wrote: > >> @Felipe >> >> Yes, I use very similar approach. Thank you for the example. >> >> I found a great project https://github.com/rfk/django-supervisor that >> enables me to run Django commands under supervisor. I will test it and let >> you know how it goes. >> >> On Wednesday, 16 September 2015 19:38:59 UTC+2, Felipe Tomaz wrote: >>> >>> I create and use this class to manipulate the queues >>> >>> https://gist.github.com/Arenhardt/8ac7e7667134c28eceed >>> >>> -- >>> Felipe Arenhardt Tomaz >>> Systems Developer >>> Curitiba - Paraná >>> www.felipetomaz.com >>> >>> On Wed, Sep 16, 2015 at 2:01 PM, Erol Merdanović <zase...@gmail.com> >>> wrote: >>> >>>> @Tom >>>> >>>> Yes, it was also thinking about using supervisord. But I'm interested >>>> if there is anything else that nicely integrates into Django. >>>> >>>> @Felipe >>>> >>>> Yes, I'm using pika. Afaik there are no decent tutorials how to >>>> implement consumers into Django. >>>> >>>> On Wednesday, 16 September 2015 16:05:26 UTC+2, Felipe Tomaz wrote: >>>>> >>>>> For manual manipulation recommend Pika[1] >>>>> >>>>> [1] https://pypi.python.org/pypi/pika >>>>> >>>>> -- >>>>> Felipe Arenhardt Tomaz >>>>> Systems Developer >>>>> Curitiba - Paraná >>>>> www.felipetomaz.com >>>>> >>>>> On Wed, Sep 16, 2015 at 10:53 AM, Erol Merdanović <zase...@gmail.com> >>>>> wrote: >>>>> >>>>>> @Vijay >>>>>> >>>>>> Yes, source of the messages is outside of the Django application. I >>>>>> could use some transformers, but again, it's extra moving part. >>>>>> >>>>>> @Sadaf >>>>>> >>>>>> Ok, thank you for the blog. I will check it out. But again, Celery is >>>>>> great but I'm not really sure it solves my problem. >>>>>> >>>>>> On Wednesday, 16 September 2015 15:34:54 UTC+2, Sadaf Noor wrote: >>>>>>> >>>>>>> Instead you can try using celery. For demonstration purpose I have >>>>>>> tried an image processing app using rabbitmq, celery with flask. It >>>>>>> worked >>>>>>> great. It can be found at my blog ( >>>>>>> http://www.sadafnoor.com/blog/rabbitmq-celery-demonstration-using-image-processing-app-on-flask/ >>>>>>> >>>>>>> ). >>>>>>> On 16-Sep-2015 6:53 PM, "Erol Merdanović" <zase...@gmail.com> wrote: >>>>>>> >>>>>>>> Hi all >>>>>>>> >>>>>>>> I'm using Django to develop a service. Service connects to RabbitMQ >>>>>>>> and receives events that are translated to creating/updating/deleting >>>>>>>> of >>>>>>>> the database records. >>>>>>>> >>>>>>>> What is the best way to run RabbitMQ consumer with Django? I'm >>>>>>>> using Pika library and I run consumer as a management command (python >>>>>>>> manage.py listen_to_changes). Is this a good solution? I don't see it >>>>>>>> so. >>>>>>>> I'm running Django as WSGI so I presume there are no start/stop Django >>>>>>>> events that I could plugin in to start/stop consumer. >>>>>>>> >>>>>>>> I'm aware of the Celery and how it nicely integrates into Django, >>>>>>>> but for me it's not an option. >>>>>>>> >>>>>>>> What do you suggest? How to run RabbitMQ with Django (stability is >>>>>>>> the main objective). >>>>>>>> >>>>>>>> -- >>>>>>>> You received this message because you are subscribed to the Google >>>>>>>> Groups "Django users" group. >>>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>>> send an email to django-users...@googlegroups.com. >>>>>>>> To post to this group, send email to django...@googlegroups.com. >>>>>>>> Visit this group at http://groups.google.com/group/django-users. >>>>>>>> To view this discussion on the web visit >>>>>>>> https://groups.google.com/d/msgid/django-users/e2b0cfd3-f33f-485c-9497-98fd281c9cd2%40googlegroups.com >>>>>>>> >>>>>>>> <https://groups.google.com/d/msgid/django-users/e2b0cfd3-f33f-485c-9497-98fd281c9cd2%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>> . >>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>> >>>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "Django users" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to django-users...@googlegroups.com. >>>>>> To post to this group, send email to django...@googlegroups.com. >>>>>> Visit this group at http://groups.google.com/group/django-users. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/django-users/a1b78c97-eddb-4330-96e9-b442fe6609bd%40googlegroups.com >>>>>> >>>>>> <https://groups.google.com/d/msgid/django-users/a1b78c97-eddb-4330-96e9-b442fe6609bd%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Django users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to django-users...@googlegroups.com. >>>> To post to this group, send email to django...@googlegroups.com. >>>> Visit this group at http://groups.google.com/group/django-users. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/django-users/ec65ffec-0b14-4a17-a15f-6899a3575cca%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/django-users/ec65ffec-0b14-4a17-a15f-6899a3575cca%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users...@googlegroups.com <javascript:>. >> To post to this group, send email to django...@googlegroups.com >> <javascript:>. >> Visit this group at http://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/4907005c-5272-4f0a-8048-749874f4d755%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/4907005c-5272-4f0a-8048-749874f4d755%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0155f46c-ff45-48aa-8c5a-97da1558c5ef%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.