django-q icon indicating copy to clipboard operation
django-q copied to clipboard

Fix connection issues with CONN_MAX_AGE > 0

Open msabatier opened this issue 4 years ago • 1 comments

For proper operation with CONN_MAX_AGE is > 0 we have to make sure that connection objects are no shared between parent and child processes.

Proposed change is to replace db.connection.close() by db.connections.close_all() in spawn_cluster().

Related open issues : #589 #486 #484 #471 #435

This has only been tested on linux, not on MacOS or Windows, as I currently don't have a way to test on those environments.

msabatier avatar Sep 05 '21 20:09 msabatier

Would be great to get this one merged.

aaronn avatar Apr 17 '22 00:04 aaronn