[Answered ]-Run and communicate with background process in Django

2👍

Django-celery is great for background task processing. It sounds like you could just make your arduino code a celery task. That makes things really easy – the task has full access to your django models, and the django process can kick off a task anytime.

Plus celery is a great Swiss Army knife tool that you can use anytime you need something that takes longer than a request and response cycle.

This looked like a good ref to me:

http://www.hiddentao.com/archives/2012/01/27/processing-long-running-django-tasks-using-celery-rabbitmq-supervisord-monit/

I’d probably suggest using redis as a broker these days, b/c you can use redis as your cache too.

👤Nils

Leave a comment