liweiquan %!s(int64=2) %!d(string=hai) anos
pai
achega
ed740ba4db
Modificáronse 3 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      app/services/dag.py
  2. 1 1
      app/services/datax.py
  3. 1 1
      app/services/jm_job.py

+ 1 - 1
app/services/dag.py

@@ -93,7 +93,7 @@ def dag_job_submit(dag_uuid:str,dag_script: str,db: Session):
         af_job = dag_create_job(dag_uuid, dag_script, db)
     else:
         af_job = dag_update_job(dag_uuid, dag_script, db)
-    get_job_last_parsed_time(af_job['id'])
+    res = get_job_last_parsed_time(af_job['id'])
     current_time = res['data']['last_parsed_time'] if 'last_parsed_time' in res['data'].keys() else None
     send_submit(af_job['id'])
     for i in range(0,21):

+ 1 - 1
app/services/datax.py

@@ -127,7 +127,7 @@ def on_off_control(af_job_id: int,status: int):
         time.sleep(2)
 
 def execute_job(af_job_id: int):
-    get_job_last_parsed_time(af_job_id)
+    res = get_job_last_parsed_time(af_job_id)
     current_time = res['data']['last_parsed_time'] if 'last_parsed_time' in res['data'].keys() else None
     send_submit(af_job_id)
     for i in range(0,21):

+ 1 - 1
app/services/jm_job.py

@@ -222,7 +222,7 @@ def on_off_control(af_job_id: int,status: int):
         time.sleep(2)
 
 def execute_job(af_job_id: int):
-    get_job_last_parsed_time(af_job_id)
+    res = get_job_last_parsed_time(af_job_id)
     current_time = res['data']['last_parsed_time'] if 'last_parsed_time' in res['data'].keys() else None
     send_submit(af_job_id)
     for i in range(0,21):