Skip to content
Snippets Groups Projects
Commit e0f4fce5 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

AthenaConfiguration: add flag to configure event timeout

Add `Exec.EventTimeOut` flags to configure the per-event timeout on the
master sequence.

Closes ATEAM-981.
parent 1f8bb1f0
No related branches found
No related tags found
2 merge requests!717422024-05-27: merge of 24.0 into main,!71547AthenaConfiguration: add flag to configure event timeout
......@@ -29,6 +29,7 @@ def initConfigFlags():
acf.addFlag('Exec.DebugStage', '', help='attach debugger at stage: conf, init, exec, fini')
acf.addFlag('Exec.Interactive', "", help='interactive prompt at stage: init, exec')
acf.addFlag('Exec.FPE', 0, help='FPE check mode: -2 (no FPE check), -1 (abort with core-dump), 0 (FPE Auditor w/o stack-tace) , >0 (number of stack-traces printed by the job)')
acf.addFlag('Exec.EventTimeOut', 0, help='per-event timeout (in ns) after which the job is aborted (0 means no timeout)')
#Custom messaging for components, see Utils.setupLoggingLevels
acf.addFlag('Exec.VerboseMessageComponents', [], help='verbose output for listed components (wildcards)')
......
......@@ -6,7 +6,9 @@ from AthenaCommon.Constants import INFO
def MainServicesMiniCfg(flags, loopMgr='AthenaEventLoopMgr', masterSequence='AthAlgSeq'):
"""Mininmal basic config, just good enough for HelloWorld and alike"""
cfg = ComponentAccumulator(CompFactory.AthSequencer(masterSequence,Sequential=True))
cfg = ComponentAccumulator(CompFactory.AthSequencer(masterSequence,
Sequential=True,
TimeOut=flags.Exec.EventTimeOut))
cfg.setAsTopLevel()
cfg.setAppProperty('TopAlg',['AthSequencer/'+masterSequence])
cfg.setAppProperty('MessageSvcType', 'MessageSvc')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment