Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with django-huey #153

Open
mirzadelic opened this issue Dec 18, 2024 · 0 comments
Open

Doesn't work with django-huey #153

mirzadelic opened this issue Dec 18, 2024 · 0 comments

Comments

@mirzadelic
Copy link

mirzadelic commented Dec 18, 2024

It works when the redis URL is localhost:6379 but if you have another URL for redis, huey monitor still tries to connect to localhost.
settings:

DJANGO_HUEY = {
    "default": "default",  # this name must match with any of the queues defined below.
    "queues": {
        "default": {
            "huey_class": "huey.RedisHuey",
            "name": "default",
            "connection": {"url": "SOME-EXTERNAL-REDIS-URL"},
            "consumer": {
                "workers": 3,
                "worker_type": "thread",
            },
        },
    },
}

Error:

ConnectionError 
/admin/huey_monitor/taskmodel/
Error 111 connecting to localhost:6379. Connection refused.

Error file:

huey_pending_count=HUEY.pending_count(),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant