From a13cd2f7ba880c5662503d8988bf2bc685f59455 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 31 Jul 2023 19:59:16 +0700 Subject: [PATCH] catch timeout in es connection check, part 2 --- tubearchivist/config/management/commands/ta_connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubearchivist/config/management/commands/ta_connection.py b/tubearchivist/config/management/commands/ta_connection.py index f7a51d2..23cc14d 100644 --- a/tubearchivist/config/management/commands/ta_connection.py +++ b/tubearchivist/config/management/commands/ta_connection.py @@ -89,8 +89,8 @@ class Command(BaseCommand): continue if status_code and status_code == 200: - path = "_cluster/health?wait_for_status=yellow&timeout=30s" - _, _ = ElasticWrap(path).get() + path = "_cluster/health?wait_for_status=yellow&timeout=60s" + _, _ = ElasticWrap(path).get(timeout=60) self.stdout.write( self.style.SUCCESS(" ✓ ES connection established") )