Answer the question
In order to leave comments, you need to log in
How to add async to Django post_save signal?
Hello.
Multiuser web application, with Django on the backend (Django rest).
I use Centrifugo to push changes.
User A updates some model (say, Task). On the backend, I "listen" to the post_save signal from the Task model and send the changes to all TASK participants. But, the problem is that Django is synchronous, that is, until the mailing is done, the user will not see the answer. How can I also listen to post_save without blocking the response to the user?
Use celery or are there simpler, but correct solutions?
Thank you in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question