MCPcopy
hub / github.com/celery/celery / cleanup

Method cleanup

celery/utils/threads.py:292–298  ·  view source on GitHub ↗

Manually clean up the data in the locals for this context. Call this at the end of the request or use ``make_middleware()``.

(self)

Source from the content-addressed store, hash-verified

290 return self.ident_func()
291
292 def cleanup(self):
293 """Manually clean up the data in the locals for this context.
294
295 Call this at the end of the request or use ``make_middleware()``.
296 """
297 for local in self.locals:
298 release_local(local)
299
300 def __repr__(self):
301 return '<{} storages: {}>'.format(

Callers 1

test_initMethod · 0.95

Calls 1

release_localFunction · 0.85

Tested by 1

test_initMethod · 0.76