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
|
continue
|
||||||
|
|
||||||
if status_code and status_code == 200:
|
if status_code and status_code == 200:
|
||||||
path = "_cluster/health?wait_for_status=yellow&timeout=30s"
|
path = "_cluster/health?wait_for_status=yellow&timeout=60s"
|
||||||
_, _ = ElasticWrap(path).get()
|
_, _ = ElasticWrap(path).get(timeout=60)
|
||||||
self.stdout.write(
|
self.stdout.write(
|
||||||
self.style.SUCCESS(" ✓ ES connection established")
|
self.style.SUCCESS(" ✓ ES connection established")
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue