mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 21:39:49 +00:00
handle 401 ES connection status code
This commit is contained in:
@@ -94,6 +94,10 @@ class Command(BaseCommand):
|
|||||||
sleep(5)
|
sleep(5)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if status_code and status_code == 401:
|
||||||
|
sleep(5)
|
||||||
|
continue
|
||||||
|
|
||||||
if status_code and status_code == 200:
|
if status_code and status_code == 200:
|
||||||
path = "_cluster/health?wait_for_status=yellow&timeout=60s"
|
path = "_cluster/health?wait_for_status=yellow&timeout=60s"
|
||||||
_, _ = ElasticWrap(path).get(timeout=60)
|
_, _ = ElasticWrap(path).get(timeout=60)
|
||||||
|
|||||||
Reference in New Issue
Block a user