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

Method get_ident

celery/utils/threads.py:339–347  ·  view source on GitHub ↗

Return context identifier. This is the identifier the local objects use internally for this context. You cannot override this method to change the behavior but use it to link other context local objects (such as SQLAlchemy's scoped sessions) to the Werkzeug locals.

(self)

Source from the content-addressed store, hash-verified

337 self.ident_func = get_ident
338
339 def get_ident(self):
340 """Return context identifier.
341
342 This is the identifier the local objects use internally
343 for this context. You cannot override this method to change the
344 behavior but use it to link other context local objects (such as
345 SQLAlchemy's scoped sessions) to the Werkzeug locals.
346 """
347 return self.ident_func()
348
349 def cleanup(self):
350 """Manually clean up the data in the locals for this context.

Callers 2

test_initMethod · 0.95

Calls

no outgoing calls

Tested by 2

test_initMethod · 0.76