get map stream -> instrument from servicemanager for feeder

This commit is contained in:
2025-05-05 08:32:34 +02:00
parent d683306beb
commit 1ed579f1cb
3 changed files with 10 additions and 3 deletions

View File

@@ -25,9 +25,14 @@ def main(dbname=None):
db = SEHistory(dbname, access='write')
db.enable_write_access()
host = socket.gethostname().split('.')[0]
fm = FrappyManager()
fm.get_info()
host = socket.gethostname().split('.')[0]
# create map to get instrument from internal stream uri
insmap = db.instrument_by_stream
for ins, ports in fm.info.items():
for p in ports.values():
insmap[f'{host}:{p}'] = ins
cfginfo = {}
for ins, procs in fm.get_procs(cfginfo=cfginfo).items():
for service in procs: