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):
|
elif isinstance(miner, UnknownMiner):
|
||||||
await self.add_to_output("Unknown Miner found, attempting to fix.")
|
await self.add_to_output("Unknown Miner found, attempting to fix.")
|
||||||
try:
|
try:
|
||||||
|
await self.do_install()
|
||||||
async with (
|
async with (
|
||||||
await miner._get_ssh_connection() # noqa - Ignore access to _function
|
await miner._get_ssh_connection() # noqa - Ignore access to _function
|
||||||
) as conn:
|
) as conn:
|
||||||
@@ -442,6 +443,11 @@ class TestbenchMiner:
|
|||||||
await self.add_to_output("Miner disconnected, waiting for new miner.")
|
await self.add_to_output("Miner disconnected, waiting for new miner.")
|
||||||
self.start_time = None
|
self.start_time = None
|
||||||
|
|
||||||
|
async def long_test_loop(self):
|
||||||
|
while True:
|
||||||
|
self.state = DONE
|
||||||
|
await self.install_done()
|
||||||
|
|
||||||
async def install_loop(self):
|
async def install_loop(self):
|
||||||
self.latest_version = sorted(await get_local_versions(), reverse=True)[0]
|
self.latest_version = sorted(await get_local_versions(), reverse=True)[0]
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ async def install():
|
|||||||
for host in miner_network.hosts():
|
for host in miner_network.hosts():
|
||||||
miner = TestbenchMiner(host)
|
miner = TestbenchMiner(host)
|
||||||
asyncio.create_task(miner.install_loop())
|
asyncio.create_task(miner.install_loop())
|
||||||
|
# asyncio.create_task(miner.long_test_loop())
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user