提交 2e3152d0 authored 作者: taojinlong's avatar taojinlong

fix: 校验任务状态

上级 ac4fc7ef
...@@ -191,6 +191,11 @@ public class DataSetTableTaskService { ...@@ -191,6 +191,11 @@ public class DataSetTableTaskService {
if(dataSetTaskDTOS.get(0).getNextExecTime() == null || dataSetTaskDTOS.get(0).getNextExecTime() <= 0){ if(dataSetTaskDTOS.get(0).getNextExecTime() == null || dataSetTaskDTOS.get(0).getNextExecTime() <= 0){
datasetTableTask.setStatus(TaskStatus.Stopped.name()); datasetTableTask.setStatus(TaskStatus.Stopped.name());
update(datasetTableTask); update(datasetTableTask);
return;
}
if(dataSetTaskDTOS.get(0).getNextExecTime() > datasetTableTask.getEndTime()){
datasetTableTask.setStatus(TaskStatus.Stopped.name());
update(datasetTableTask);
} }
} }
} }
......
...@@ -280,4 +280,5 @@ i18n_datasource_connect_error=Data source connection exception: ...@@ -280,4 +280,5 @@ i18n_datasource_connect_error=Data source connection exception:
i18n_check_sql_error=Check incremental SQL exception, i18n_check_sql_error=Check incremental SQL exception,
i18n_change_task_status_error=Suspension is not allowed. The task status is: i18n_change_task_status_error=Suspension is not allowed. The task status is:
i18n_Stopped=END i18n_Stopped=END
i18n_Exec=Running i18n_Exec=Running
\ No newline at end of file i18n_no_trigger=The current setting does not trigger task generation.
\ No newline at end of file
...@@ -280,4 +280,5 @@ i18n_check_sql_error=校验增量 SQL 异常, ...@@ -280,4 +280,5 @@ i18n_check_sql_error=校验增量 SQL 异常,
i18n_change_task_status_error=不允许暂停,任务状态为: i18n_change_task_status_error=不允许暂停,任务状态为:
i18n_Stopped=执行结束 i18n_Stopped=执行结束
i18n_Exec=运行中 i18n_Exec=运行中
i18n_no_trigger=当前设置没有触发任务生成
...@@ -282,4 +282,5 @@ i18n_datasource_connect_error=數據源連接異常: ...@@ -282,4 +282,5 @@ i18n_datasource_connect_error=數據源連接異常:
i18n_check_sql_error=校驗增量SQL異常, i18n_check_sql_error=校驗增量SQL異常,
i18n_change_task_status_error=不允許暫停,任務狀態為: i18n_change_task_status_error=不允許暫停,任務狀態為:
i18n_Stopped=執行結束 i18n_Stopped=執行結束
i18n_Exec=運行中 i18n_Exec=運行中
\ No newline at end of file i18n_no_trigger=当前设置没有触发任务生成 當前設置沒有觸發任務生成.
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论