Skip to content

Commit

Permalink
Merge pull request #1551 from rajeevbbqq/ropsten-phase-1
Browse files Browse the repository at this point in the history
Health check only if the service is curated (Ropsten Phase 1)
  • Loading branch information
prashantramangupta committed Jun 2, 2021
2 parents da1f1fb + 8f62f0a commit a694a06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service_status/monitor_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MonitorService:

def _get_service_endpoint_data(self, limit):
query = "SELECT row_id, org_id, service_id, endpoint, is_available, failed_status_count FROM service_endpoint WHERE " \
"next_check_timestamp < UTC_TIMESTAMP AND endpoint not regexp %s ORDER BY last_check_timestamp ASC"
"next_check_timestamp < UTC_TIMESTAMP AND endpoint not regexp %s AND (org_id,service_id) IN (SELECT org_id, service_id FROM service WHERE service.is_curated=1) ORDER BY last_check_timestamp ASC"
if limit is not None:
query = query + " LIMIT %s"
result = self.repo.execute(query, [self.rex_for_pb_ip, limit])
Expand Down
2 changes: 1 addition & 1 deletion service_status/service_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _ping_url(self, url):

def _get_service_endpoint_data(self):
query = "SELECT row_id, org_id, service_id, endpoint, is_available, failed_status_count FROM service_endpoint WHERE " \
"next_check_timestamp < UTC_TIMESTAMP AND endpoint not regexp %s ORDER BY last_check_timestamp ASC " \
"next_check_timestamp < UTC_TIMESTAMP AND endpoint not regexp %s AND (org_id,service_id) IN (SELECT org_id, service_id FROM service WHERE service.is_curated=1) ORDER BY last_check_timestamp ASC " \
"LIMIT %s"
result = self.repo.execute(query, [self.rex_for_pb_ip, LIMIT])
if result is None or result == []:
Expand Down

0 comments on commit a694a06

Please sign in to comment.