We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8ac5fd commit f3f6791Copy full SHA for f3f6791
celery/fixups/django.py
@@ -193,7 +193,7 @@ def _close_database(self):
193
194
def close_cache(self):
195
try:
196
- self._cache.cache.close()
+ self._cache.close_caches()
197
except (TypeError, AttributeError):
198
pass
199
t/unit/fixups/test_django.py
@@ -227,9 +227,7 @@ def test__close_database(self):
227
def test_close_cache(self):
228
with self.fixup_context(self.app) as (f, _, _):
229
f.close_cache()
230
- f._cache.cache.close.assert_called_with()
231
- f._cache.cache.close.side_effect = TypeError()
232
- f.close_cache()
+ f._cache.close_caches.assert_called_with()
233
234
def test_on_worker_ready(self):
235
0 commit comments