Definition at line 588 of file pTools.py.
def GaudiMP.pTools.Syncer.__init__ |
( |
|
self, |
|
|
|
nWorkers, |
|
|
|
log, |
|
|
|
manyEvents = False , |
|
|
|
limit = None , |
|
|
|
step = None , |
|
|
|
firstEvent = None |
|
) |
| |
Definition at line 590 of file pTools.py.
590 limit=
None, step=
None, firstEvent=
None):
597 for i
in xrange(-2, nWorkers):
598 self.
d[i] =
SyncMini(Event(), lastEvent=Event())
def GaudiMP.pTools.Syncer.checkAll |
( |
|
self | ) |
|
Definition at line 696 of file pTools.py.
699 currentStatus = [mini.check()
for mini
in self.d.values()]
700 return all(currentStatus)
def GaudiMP.pTools.Syncer.checkLastEvents |
( |
|
self | ) |
|
Definition at line 702 of file pTools.py.
704 stat = [sMini.checkLast()
for sMini
in self.d.values()]
def GaudiMP.pTools.Syncer.processHang |
( |
|
self | ) |
|
Definition at line 690 of file pTools.py.
691 self.log.critical(
'Some proc is hanging during Event processing!')
693 self.log.critical(
"Proc/Stat : %i / %s" % (k, self.
d[k].check()))
def GaudiMP.pTools.Syncer.syncAll |
( |
|
self, |
|
|
|
step = "Not specified" |
|
) |
| |
Definition at line 606 of file pTools.py.
615 for i
in xrange(0, self.
limit, self.
step):
617 self.log.info(
'%s : All procs done @ %i s' % (step, i))
620 time.sleep(self.
step)
624 self.log.info(
"All processes : %s ok." % (step))
627 self.log.critical(
'Some process is hanging on : %s' % (step))
629 hangString =
"%s : Proc/Stat : %i/%s" % (
630 step, k, self.
d[k].check())
631 self.log.critical(hangString)
def GaudiMP.pTools.Syncer.syncAllRolling |
( |
|
self | ) |
|
Definition at line 634 of file pTools.py.
656 if sMini.check()
or sMini.checkLast():
657 if sMini.checkLast()
and sMini.check():
660 alive = time.time() - begin
661 self.log.info(
"Audit : Node %i alive for %5.2f" 668 wait = time.time() - sMini.getTime()
669 cond = wait > self.
limit 675 self.log.critical(
'Single event wait : %5.2f' % (wait))
681 self.log.info(
'TC met for event loop')
685 time.sleep(self.
step)
687 self.log.info(
"All processes Completed all Events ok")
GaudiMP.pTools.Syncer.keys |
GaudiMP.pTools.Syncer.limit |
GaudiMP.pTools.Syncer.limitFirst |
GaudiMP.pTools.Syncer.log |
GaudiMP.pTools.Syncer.manyEvents |
GaudiMP.pTools.Syncer.nWorkers |
GaudiMP.pTools.Syncer.step |
The documentation for this class was generated from the following file: