Koed00 / django-q

A multiprocessing distributed task queue for Django
https://django-q.readthedocs.org
MIT License
1.83k stars 289 forks source link

[Question] Hook when all tasks in Chain finished #325

Open ppsammartino opened 5 years ago

ppsammartino commented 5 years ago

I'm having trouble achieving this. I need a function to execute as soon as the Chain has finished processing all the tasks.

In detail: I've got a Chain. Each task performs a request to a server, and should come back. I can't stop/block and wait for the responses to come and finish (with the builtin 'result' method). The Chain should run, all responses should be stored and a function should be executed as soon as the last response arrives.

Am I missing something? Is there a way to check that state without having to stop the flux of the app? Thanks!

MikeNatty commented 3 years ago

Same issue. How did you resolve it?