mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-07-01 23:01:11 +00:00
catch timeout in es connection check, part 2
This commit is contained in:
parent
befdc64772
commit
a13cd2f7ba
@ -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")
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user