sorry, i’m lost
i don’t see anything there that would solve this problem
I believe I faced pretty much the same problem with async database backend connections. The issue was that I couldn’t use a signal to close the connection at the end of the request, because signals don’t share context vars.
After the fix, we could do something like this: https://github.com/django/django/pull/20288/changes prepopulate connection handlers at the beginning and close them at the end. It works.
ah
bo, the mentioned issue is not a dispatcher issue
it’s just the signal implemented in django is sync only, and it needs to change to support async as well
we have a working signal in django-valkey that supports both sync and async
Ah okay, my bad, I think I misunderstood ![]()
1 Like