You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accessing the transport property will create a new redis connection. (We use a redis broker but I assume the behavior is the same for other transport types.) This connection is never closed so it's left to the GC to clean up.
So I looked into this and while I can't reproduce the leak (I'm on MacOS so that might be part of the reason), it's clear that we should be closing the connection if we open one. There's a fix for that here.
On the other hand, I'm not happy with us opening connections, especially just for the purpose of determining the driver type. Opened #5428 to see whether this can be improved.
Activity
linear commentedon Feb 4, 2026
PY-2067
alexander-alderman-webb commentedon Feb 4, 2026
Thanks for the well-written report @pdewacht. We'll resolve the leak and keep you updated.
sentrivana commentedon Feb 6, 2026
So I looked into this and while I can't reproduce the leak (I'm on MacOS so that might be part of the reason), it's clear that we should be closing the connection if we open one. There's a fix for that here.
On the other hand, I'm not happy with us opening connections, especially just for the purpose of determining the driver type. Opened #5428 to see whether this can be improved.
fix(celery): Close the connection we're reading driver_type from (get…