Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dima-kov/django-mq

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

212 Commits
212 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-mq

Installation

Install: pip install git+ssh://git@github.com/dima-kov/django-mq.git@master

Setup:

  1. Add mq to INSTALLED_APPS, make sure to place above django.contrib.admin to include functionality of queues in admin

  2. Set redis settings:

    MQ_REDIS_HOST = 'localhost'
    MQ_REDIS_PORT = 6379
    
  3. Set logging:

    MQ_LOGGING_DIRECTORY = '/tmp/project-mq-log/'
    MQ_LOGGING_LOGGERS = [
       'logger_foo',
       'logger_bar',
    ]
    from mq.logging import configure_logging
    
    configure_logging(LOGGING, MQ_LOGGING_LOGGERS, MQ_LOGGING_DIRECTORY)
    
  4. Set a class with queues facade. It is used for admin stats view: (/admin/mq/mqmessagetype/stats/).

    This class should be inherited from mq.queue.queue.BaseQueuesFacade:

    MQ_QUEUES_FACADE_CLASS = 'myapp.facade.QueuesFacade`
    

Settings

  • MQ_FLUSH_ERRORS_DAYS - specify days after which resolved MqErrors will be deleted with command mq_flush_errors

Django vs non django usage

App supports to be used with and without django.

About

Lightweight django async queue

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.