MCPcopy Create free account
hub / github.com/celery/celery / cleanup

Method cleanup

celery/utils/threads.py:349–355  ·  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

347 return self.ident_func()
348
349 def cleanup(self):
350 """Manually clean up the data in the locals for this context.
351
352 Call this at the end of the request or use ``make_middleware()``.
353 """
354 for local in self.locals:
355 release_local(local)
356
357 def __repr__(self):
358 return '<{} storages: {}>'.format(

Callers 1

test_initMethod · 0.95

Calls 1

release_localFunction · 0.85

Tested by 1

test_initMethod · 0.76