Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit c1f5dd2

Browse files
committed
retries on get_dashbssb
1 parent 68d22f7 commit c1f5dd2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,9 @@ def getWMStats(url):
15461546
return json.loads(r2.read())['result'][0]
15471547

15481548
def get_dashbssb(path_name, ssb_metric):
1549+
return runWithRetries(_get_dashbssb, [path_name, ssb_metric], {})
1550+
1551+
def _get_dashbssb(path_name, ssb_metric):
15491552
with open('Unified/monit_secret.json') as monit:
15501553
conf = json.load(monit)
15511554
query = """'{"search_type":"query_then_fetch","ignore_unavailable":true,"index":["monit_prod_cmssst_*","monit_prod_cmssst_*"]}

0 commit comments

Comments
 (0)