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

Getting "Unknown error" for CeleryHealthCheck #144

Closed
GyanP opened this issue Sep 18, 2017 · 2 comments
Closed

Getting "Unknown error" for CeleryHealthCheck #144

GyanP opened this issue Sep 18, 2017 · 2 comments
Assignees
Labels

Comments

@GyanP
Copy link

GyanP commented Sep 18, 2017

I digging this error and found the actual error "No result backend is configured" in
https://github.com/KristianOellegaard/django-health-check/blob/master/health_check/contrib/celery/backends.py at line 20

result.get(timeout=timeout)

Can anyone help me on this?

Thanks

@codingjoe
Copy link
Collaborator

Hi @GyanP

thanks for reaching out. I presume it's most likely because you don't have a result backend configured for celery. Check our there setup guide to see how its done.
If you have it setup, there is a trouble shooting guide for that:
http://docs.celeryproject.org/en/latest/getting-started/first-steps-with-celery.html#result-backend-doesn-t-work-or-tasks-are-always-in-pending-state

In any case, the message is valid and cause for action :)

Cheers
-Johannes

@codingjoe codingjoe self-assigned this Sep 21, 2017
@DmytroLitvinov
Copy link

DmytroLitvinov commented Nov 3, 2021

Hi @codingjoe , @KristianOellegaard ,

We are facing the same issue on manage.py health_check management command.
We use Redis as a broker and result backend.

Need to mention, that we have next version:

  • celery[redis]==5.1.2

When we are running from shell same task which used in that command, we are getting result as expected. And also we checked that backend configured correctly:

from health_check.contrib.celery.tasks import add
add_result = add.apply_async(args=[4,4], expires=3)
print(add_result.backend)

And the response is: <celery.backends.redis.RedisBackend at 0x7f8a9ae043a0>.

But when we are running management command, we see that result backend is <celery.backends.base.DisabledBackend object at 0x7f8695ff0310>

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

No branches or pull requests

3 participants