gaiacoop / django-huey

A django integration for huey task queue that supports multi queue management
MIT License
67 stars 5 forks source link

Unable to use `django-huey` with `SqliteHuey` #8

Closed fabiocaccamo closed 2 years ago

fabiocaccamo commented 2 years ago

Settings:

DJANGO_HUEY = {
    'default': 'xxx',
    'queues': {
        'xxx': {
            'huey_class': 'huey.SqliteHuey',
            'name': 'xxx_tasks',
            'consumer': {
                'workers': 4,
                'worker_type': 'thread',
            },
        },
        'yyy': { 
            'huey_class': 'huey.SqliteHuey',
            'name': 'yyy_tasks',
            'consumer': {
                'workers': 2,
                'worker_type': 'thread',
            },
        }
    }
}

Exception raised:

huey.exceptions.ConfigurationError: "redis" python module not found, cannot use Redis storage backend. Run "pip install redis" to install.

redis should be optional.

pablop94 commented 2 years ago

Fixed in v1.1.1

fabiocaccamo commented 2 years ago

@pablop94 thank you for the quick fix, debugging it more I discovered this is a huey bug and the workaround for me was to install redis even not needing it: pip install redis.