49) -> list[Configurable]:
50 """
51 Take a configuration and adds a check on events reaching a timeout.
52 """
53
54 app = next(c for c in conf if c.name == "ApplicationMgr")
55
56 watchdog = C.Gaudi.EventWatchdogAlg(
57 EventTimeout=timeout_seconds,
58 StackTrace=False,
59 AbortOnTimeout=True,
60 )
61
62
63 wrapping_seq = C.Gaudi.Sequencer(
64 "SequenceWithTimeout", Sequential=True, Members=[watchdog] + list(app.TopAlg)
65 )
66
67 app.TopAlg = [wrapping_seq]
68
69 return conf + [watchdog, wrapping_seq]
70
71