Browse Source

docker features 3

master
gsd 1 year ago
parent
commit
6efd3fd116
  1. 10
      ext/python-docker-client/dockerclient.py

10
ext/python-docker-client/dockerclient.py

@ -113,14 +113,16 @@ if __name__ == "__main__":
while try_count:
try_count -= 1
if try_count == 0:
print("Exit cannot get backend")
sys.exit(1)
loop.run_until_complete(c.request_srvs())
if c.servers.__len__() == 0:
print("Backend not respond, or server list not setup! Try again after 5 seconds...")
loop.run_until_complete(asyncio.sleep(5))
if try_count == 0:
print("Exit cannot get backend")
sys.exit(1)
else:
break
print(f"Found {c.servers.__len__()} servers!")

Loading…
Cancel
Save