Skip to content

Commit

Permalink
remote/exporter: remove checkpoint handling
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Luebbe <[email protected]>
  • Loading branch information
jluebbe committed Jun 13, 2024
1 parent 9df25bf commit 925a302
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions labgrid/remote/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,6 @@ def __init__(self, config) -> None:
self.out_queue = asyncio.Queue()
self.pump_task = None

self.checkpoint = time.monotonic()
self.poll_task = None

self.groups = {}
Expand Down Expand Up @@ -777,7 +776,6 @@ async def run(self) -> None:
await self.add_resource(
group_name, resource_name, cls, params
)
self.checkpoint = time.monotonic()

logging.info("creating poll task")
self.poll_task = self.loop.create_task(self.poll())
Expand Down Expand Up @@ -896,10 +894,6 @@ async def poll(self):
break
except Exception: # pylint: disable=broad-except
traceback.print_exc(file=sys.stderr)
age = time.monotonic() - self.checkpoint
if age > 300:
print(f"missed checkpoint, exiting (last was {age} seconds ago)", file=sys.stderr)
#self.disconnect()

async def add_resource(self, group_name, resource_name, cls, params):
"""Add a resource to the exporter and update status on the coordinator"""
Expand Down

0 comments on commit 925a302

Please sign in to comment.