fixed a bug with antminers not reporting type because of fans in testbench, and added a long running get data for long tests
This commit is contained in:
@@ -149,6 +149,7 @@ class TestbenchMiner:
|
||||
elif isinstance(miner, UnknownMiner):
|
||||
await self.add_to_output("Unknown Miner found, attempting to fix.")
|
||||
try:
|
||||
await self.do_install()
|
||||
async with (
|
||||
await miner._get_ssh_connection() # noqa - Ignore access to _function
|
||||
) as conn:
|
||||
@@ -442,6 +443,11 @@ class TestbenchMiner:
|
||||
await self.add_to_output("Miner disconnected, waiting for new miner.")
|
||||
self.start_time = None
|
||||
|
||||
async def long_test_loop(self):
|
||||
while True:
|
||||
self.state = DONE
|
||||
await self.install_done()
|
||||
|
||||
async def install_loop(self):
|
||||
self.latest_version = sorted(await get_local_versions(), reverse=True)[0]
|
||||
while True:
|
||||
|
||||
@@ -80,6 +80,7 @@ async def install():
|
||||
for host in miner_network.hosts():
|
||||
miner = TestbenchMiner(host)
|
||||
asyncio.create_task(miner.install_loop())
|
||||
# asyncio.create_task(miner.long_test_loop())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user