ThreadConfig

class DIRAC.Core.DISET.ThreadConfig.ThreadConfig

Bases: thread._local

This class allows to contain extra information when a call is done on behalf of somebody else. Typically, when a host performs the request on behalf of a user. It is not used inside DIRAC, but is used in WebAppDIRAC for example

Note that the class is a singleton, meaning that you share the same object in the whole process, however the attributes are thread locals (because of the threading.local inheritance).

Also, this class has to be populated manually, no Client class will do it for you.

__init__()

x.__init__(…) initializes x; see help(type(x)) for signature

dump()
getDN()
getDecorator()
getGroup()
getID()
getSetup()
instance = <DIRAC.Core.DISET.ThreadConfig.ThreadConfig object>
load(tp)
reset()
setDN(DN)
setDecorator(deco)
setGroup(group)
setID(DN, group)
setSetup(setup)
DIRAC.Core.DISET.ThreadConfig.threadDeco(method)