Giter VIP home page Giter VIP logo

Comments (2)

codingjoe avatar codingjoe commented on June 25, 2024

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

from django-health-check.

DmytroLitvinov avatar DmytroLitvinov commented on June 25, 2024

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>

from django-health-check.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.