mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-09-09 05:29:10 +00:00
v1.6.16:当任务下线时JOB的执行结束时间错误修正
This commit is contained in:
@@ -102,7 +102,9 @@ public class ScheduleService {
|
||||
List<AssignmentJobEntity> jobs = assignmentJobDAO.getByAssignmentId(taskId);
|
||||
if (CollectionUtils.isNotEmpty(jobs)) {
|
||||
for (AssignmentJobEntity job : jobs) {
|
||||
cancelJob(job.getId());
|
||||
if (job.getStatus() == JobStatusEnum.RUNNING.getValue()) {
|
||||
cancelJob(job.getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user