Skip to content

Commit

Permalink
cleaning & batch settings update (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
cl3m3nt authored Jun 7, 2022
1 parent b25a0d2 commit 9df05af
Show file tree
Hide file tree
Showing 39 changed files with 5 additions and 2,545 deletions.
130 changes: 0 additions & 130 deletions src/batch/airflow/dag_trigger_batch_etl.py

This file was deleted.

10 changes: 5 additions & 5 deletions src/batch/airflow/dag_trigger_batch_etl_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
AKS_RG = os.getenv('AKS_RG')
AKS_CLUSTER = os.getenv('AKS_CLUSTER')
AKS_NODEPOOL = os.getenv('AKS_NODEPOOL')
AI_DEV_URL = os.getenv('AI_DEV_URL')
AI_URL = os.getenv('AI_URL')
VIDEO_TEST_NAME = os.getenv('VIDEO_TEST_NAME')
VIDEO_TEST_URL = os.getenv('VIDEO_TEST_URL')
ETL_DEV_URL = os.getenv('ETL_DEV_URL')
ETL_URL = os.getenv('ETL_URL')

# PG connection
pg_conn_string = get_pg_connection_string()
Expand Down Expand Up @@ -99,7 +99,7 @@ def wait_surfnet():
ai_ready = False
while (ai_ready == False):
try:
response = requests.get(AI_DEV_URL+':8000')
response = requests.get(AI_URL+':8000')
output = [response.status_code][0]
if output == 200:
ai_ready = True
Expand Down Expand Up @@ -134,7 +134,7 @@ def post_video_surfnet(video_name,ai_url):
output = [response._content]
return str(output)

post_surfnet_video_op = post_video_surfnet(VIDEO_TEST_NAME,AI_DEV_URL)
post_surfnet_video_op = post_video_surfnet(VIDEO_TEST_NAME,AI_URL)
# [END post_surfnet_video]

# [START trigger_batch_etl]
Expand Down Expand Up @@ -162,7 +162,7 @@ def trigger_batch_etl(cursor):
blob_name = notprocessed_media['name']
container = notprocessed_media['container']
logid = notprocessed_media['logid']
url = f'{ETL_DEV_URL}:80/api/etlHttpTrigger?container={container}&blob={blob_name}&prediction=ai&source={container}&target=postgre&aiurl={AI_DEV_URL}&logid={logid}'
url = f'{ETL_URL}:80/api/etlHttpTrigger?container={container}&blob={blob_name}&prediction=ai&source={container}&target=postgre&aiurl={AI_URL}&logid={logid}'
response = requests.get(url)
if not response.ok:
print(f'Request to ETL failed wih reason {response.reason}.')
Expand Down
19 changes: 0 additions & 19 deletions src/batch/cronjob/hello.yaml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
38 changes: 0 additions & 38 deletions src/realtime/etlAPIs/Dockerfile

This file was deleted.

Loading

0 comments on commit 9df05af

Please sign in to comment.