|
def | __init__ (self, theSched=None, thePrec=None) |
|
Definition at line 32 of file AlgScheduler.py.
◆ __init__()
def python.AlgScheduler.AlgScheduler.__init__ |
( |
|
self, |
|
|
|
theSched = None , |
|
|
|
thePrec = None |
|
) |
| |
Setup Algorithm Scheduler
Definition at line 33 of file AlgScheduler.py.
33 def __init__(self,theSched=None,thePrec=None):
34 """Setup Algorithm Scheduler"""
36 from AthenaCommon.AppMgr
import ServiceMgr
as svcMgr
39 from AthenaCommon.ConcurrencyFlags
import jobproperties
as jps
40 from AthenaCommon.Logging
import logging
42 self.log = logging.getLogger(
'AlgScheduler' )
44 if (theSched
is None) :
45 from GaudiHive.GaudiHiveConf
import AvalancheSchedulerSvc
46 svcMgr += AvalancheSchedulerSvc()
47 self.SchedulerSvc = svcMgr.AvalancheSchedulerSvc
50 self.SchedulerSvc = theSched
52 if (thePrec
is None) :
53 from GaudiHive.GaudiHiveConf
import PrecedenceSvc
54 svcMgr += PrecedenceSvc()
55 self.PrecedenceSvc = svcMgr.PrecedenceSvc
58 self.PrecedenceSvc = thePrec
60 self.SchedulerSvc.OutputLevel = INFO
61 self.PrecedenceSvc.OutputLevel = INFO
62 self.SchedulerSvc.CheckDependencies =
True
63 self.SchedulerSvc.ThreadPoolSize = jps.ConcurrencyFlags.NumThreads()
65 self.log.
info(
"setting up " + self.SchedulerSvc.getFullName() +
" with " +
str(jps.ConcurrencyFlags.NumThreads()) +
" threads")
◆ log
python.AlgScheduler.AlgScheduler.log |
◆ PrecedenceSvc
python.AlgScheduler.AlgScheduler.PrecedenceSvc |
◆ SchedulerSvc
python.AlgScheduler.AlgScheduler.SchedulerSvc |
The documentation for this class was generated from the following file: