diff options
author | MS <ms@taler.net> | 2022-08-25 16:05:14 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2022-08-25 16:05:14 +0200 |
commit | 977e86189d322a85812c0bb8ce302804ffb867f9 (patch) | |
tree | 81d007e62937cdced2da57ef4940fac8081975ec | |
parent | 96469a3ef03a8a99718d213330ef14d7322c453d (diff) | |
download | deployment-977e86189d322a85812c0bb8ce302804ffb867f9.tar.gz deployment-977e86189d322a85812c0bb8ce302804ffb867f9.tar.bz2 deployment-977e86189d322a85812c0bb8ce302804ffb867f9.zip |
loop count
-rwxr-xr-x | bin/taler-gv | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/taler-gv b/bin/taler-gv index f95e5d1..a63bfca 100755 --- a/bin/taler-gv +++ b/bin/taler-gv @@ -1316,7 +1316,12 @@ def prepare(postgres_db_name): print_nn("Launching the exchange...") subprocess.run(["systemctl", "--user", "start", "taler-local-exchange-httpd.service"]) res = requests.get("https://exchange.demo.taler.net/") + res_count = 0 while res.status_code != 200: + if res_count == 10: + print("Exchange unreachable") + sys.exit(1) + res_count = res_count + 1 time.sleep(1) res = requests.get("https://exchange.demo.taler.net/") print(" OK") |