MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _unit_name

Function _unit_name

webapp_modern.py:2643–2647  ·  view source on GitHub ↗
(service_name: str)

Source from the content-addressed store, hash-verified

2641 import watchtower as _wtmod
2642 cfg = shared_data.config
2643 dirs = cfg.get('watchtower_dirs') or None
2644 try:
2645 maxa = int(cfg.get('watchtower_max_alerts', 500))
2646 except (TypeError, ValueError):
2647 maxa = 500
2648 wt = _wtmod.Watchtower(dirs=dirs, max_alerts=maxa, tail_only=True)
2649 try:
2650 with open(_wt_ring_path()) as f:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected