瀏覽代碼

datax add timeout

liweiquan 2 年之前
父節點
當前提交
53db82838e
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      app/services/datax.py

+ 4 - 4
app/services/datax.py

@@ -16,8 +16,8 @@ def datax_create_job(job_info: models.JobInfo, db: Session):
         "desc": job_info.job_desc,
         "route_strategy": job_info.executor_route_strategy,
         "block_strategy": job_info.executor_block_strategy,
-        "executor_timeout": job_info.executor_timeout,
-        "executor_fail_retry_count": job_info.executor_fail_retry_count,
+        "execution_timeout": job_info.executor_timeout,
+        "retries": job_info.executor_fail_retry_count,
         "trigger_status": job_info.trigger_status,
         "job_mode":1,
         "job_type": 0,
@@ -83,8 +83,8 @@ def datax_update_job(job_info: models.JobInfo, db: Session):
         "desc": job_info.job_desc,
         "route_strategy": job_info.executor_route_strategy,
         "block_strategy": job_info.executor_block_strategy,
-        "executor_timeout": job_info.executor_timeout,
-        "executor_fail_retry_count": job_info.executor_fail_retry_count,
+        "execution_timeout": job_info.executor_timeout,
+        "retries": job_info.executor_fail_retry_count,
         "trigger_status": job_info.trigger_status,
     }
     res = send_put('/af/af_job', old_af_job['id'], af_job)