|
@@ -25,12 +25,12 @@ def upload2oss(content: bytes, uri: str, minio_bucket: str):
|
|
|
|
|
|
|
|
|
def get_job_path(job_id):
|
|
|
- dag_path = f'{config.get("AIRFLOW", "dag_files_dir")}'
|
|
|
+ dag_path = f'{config.get("AF_BACKEND", "dag_files_dir")}'
|
|
|
return dag_path + f'dag_{job_id}.py'
|
|
|
|
|
|
|
|
|
def get_airflow_api_info():
|
|
|
- uri_prefix = f'http://{config.get("AIRFLOW", "ip_address")}/api/v1'
|
|
|
+ uri_prefix = f'http://{config.get("AIRFLOW", "uri")}/api/v1'
|
|
|
headers = {
|
|
|
'content-type': 'application/json',
|
|
|
'Authorization': f'basic {config.get("AIRFLOW", "api_token")}',
|
|
@@ -40,7 +40,7 @@ def get_airflow_api_info():
|
|
|
|
|
|
|
|
|
def call_airflow_api(method, uri, args_dict):
|
|
|
- uri_prefix = f'http://{config.get("AIRFLOW", "ip_address")}/api/v1'
|
|
|
+ uri_prefix = f'http://{config.get("AIRFLOW", "uri")}/api/v1'
|
|
|
headers = {
|
|
|
'content-type': 'application/json',
|
|
|
'Authorization': f'basic {config.get("AIRFLOW", "api_token")}',
|