瀏覽代碼

调试任务创建后启动

liweiquan 2 年之前
父節點
當前提交
9ae33c1c1a
共有 1 個文件被更改,包括 1 次插入0 次删除
  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