catch timeout in es connection check, part 2

pull/510/head
Simon 11 months ago
parent befdc64772
commit a13cd2f7ba
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

@ -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…
Cancel
Save