Skip to content

Commit

Permalink
Merge pull request #1315 from JoshuaWatt/coordinator-statsd-close-ses…
Browse files Browse the repository at this point in the history
…sion

contrib/coordinator-statsd: Close sessions
  • Loading branch information
Bastian-Krause committed Jan 18, 2024
2 parents c301638 + c604bc8 commit 1bb2db3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions contrib/coordinator-statsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,15 @@ def main():
os.environ.get("LG_CROSSBAR_REALM", "realm1"),
extra,
)

session.loop.run_until_complete(
asyncio.gather(
report_places(session, args.tags, gauges),
report_reservations(session, args.tags, gauges),
try:
session.loop.run_until_complete(
asyncio.gather(
report_places(session, args.tags, gauges),
report_reservations(session, args.tags, gauges),
)
)
)
finally:
session.leave()
except labgrid.remote.client.Error as e:
print(f"Error communicating with labgrid: {e}")
continue
Expand Down

0 comments on commit 1bb2db3

Please sign in to comment.