A
Size: a a a
A
YD
class LocalContext(object):
user = contextvars.ContextVar('authentication', default=None)
app = contextvars.ContextVar('application', default=None)
request_id = contextvars.ContextVar('request_id', default=None)
session = contextvars.ContextVar('session', default=None)
YD
INFO - Application Name - None - <ContextVar name='authentication' default=None at 0x7fb099f6d0b0>
A
A
A
Important: Context Variables should be created at the top module level and never in closures. Context objects hold strong references to context variables which prevents context variables from being properly garbage collected.
YD
INFO - Application Name - None - <ContextVar name='authentication' default=None at 0x7fb099f6d0b0>
A
A
YD
A
A
A
A
MO
A
MO
A