Selaa lähdekoodia

调试任务创建后启动

liweiquan 2 vuotta sitten
vanhempi
commit
9ae33c1c1a
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      app/services/dag.py

+ 1 - 0
app/services/dag.py

@@ -97,6 +97,7 @@ def dag_job_submit(dag_uuid:str,dag_script: str,db: Session):
         res = get_job_last_parsed_time(af_job['id'])
         last_parsed_time = res['data']['last_parsed_time']
         if last_parsed_time and current_time < int(last_parsed_time):
+            send_pause(af_job['id'],1)
             send_execute(af_job['id'])
             print(f"{af_job['id']}<==执行成功==>{last_parsed_time}")
             break