Skip to content

Commit

Permalink
Create hollow entities on DQT relation ingestion payload (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
DementevNikita authored Jun 13, 2022
1 parent 71ca823 commit df18b32
Show file tree
Hide file tree
Showing 4 changed files with 371 additions and 355 deletions.
5 changes: 4 additions & 1 deletion docker/injector/inject.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import requests

REACH_TRIES_NUMBER = 10
REACH_TRIES_NUMBER = 20
APP_PATH = os.getenv("APP_PATH") or "."


Expand Down Expand Up @@ -46,6 +46,7 @@ def inject_data(data: Dict[str, Any], token: str):


platform_host_url = os.environ["PLATFORM_HOST_URL"]
print(f"Platform host url: {platform_host_url}")

data_sources_grouped = {ds["oddrn"]: ds for ds in read_datasources_json()}

Expand All @@ -63,10 +64,12 @@ def inject_data(data: Dict[str, Any], token: str):
try:
hc_response = requests.get(f"{platform_host_url}/actuator/health")
except requests.exceptions.ConnectionError:
print("Couldn't reach the platform")
time.sleep(2)
continue

if hc_response.json().get('status') != 'UP':
print("Platform's not healthy yet")
time.sleep(2)
continue

Expand Down
Loading

0 comments on commit df18b32

Please sign in to comment.