{"repo":"Bogdanp/django_dramatiq","free":true,"listed":false,"github":"https://github.com/Bogdanp/django_dramatiq","clone":"git clone https://github.com/Bogdanp/django_dramatiq.git","description":"A Django app that integrates with Dramatiq.","language":"Python","stars":384,"topics":["python","queue","django"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Django Dramatiq Seemlessly integrate [Dramatiq][dramatiq] with your Django project! Contents - Installation - Getting Started - Testing - Middleware - Advanced Usage - Third-Party Support - Example App Installation To install, ensure both Django Dramatiq and Dramatiq are installed, along with RabbitMQ: pip install django-dramatiq 'dramatiq[rabbitmq]' Or with Redis: pip install django-dramatiq 'dramatiq[redis]' If you would like to install with watch : pip install django-dramatiq 'dramatiq[rabbitmq, watch]' Add django dramatiq to installed apps before any of your custom apps: Configure your broker in settings.py : Getting Started Declaring tasks Django Dramatiq will auto-discover tasks defined in tasks modules in each of your installed apps. For example, if you have an app named customers , your tasks for that app should live in a module called customers.tasks : You can override the name of the tasks module by setting one or more names in settings: Running workers Django Dramatiq comes with a management command you can use to auto-discover task modules and run workers: By default, rundramatiq will adjust the number of processes/threads used by Dramatiq based on the number of detected CPUs: one process will be launched per CPU, and each process will have 8 worker threads. The default number of processes, threads per process can be overridden through environment variables, which take precedence over the defaults: Or alternatively through command line arguments, which take preced","default_branch":null,"files":null,"tree":[],"storefront":"/r/Bogdanp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Bogdanp/django_dramatiq/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}