1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] How to check task status in Celery?

Discussão em 'Python' iniciado por Stack, Setembro 16, 2025.

  1. Stack

    Stack Membro Participativo

    How does one check whether a task is running in celery (specifically, I'm using celery-django)?

    I've read the documentation, and I've googled, but I can't see a call like:

    my_example_task.state() == RUNNING


    My use-case is that I have an external (java) service for transcoding. When I send a document to be transcoded, I want to check if the task that runs that service is running, and if not, to (re)start it.

    I'm using the current stable versions - 2.4, I believe.

    Continue reading...

Compartilhe esta Página