diff --git a/dinky-admin/src/main/java/org/dinky/service/impl/TaskServiceImpl.java b/dinky-admin/src/main/java/org/dinky/service/impl/TaskServiceImpl.java index 376b4b96d0..169679cd3e 100644 --- a/dinky-admin/src/main/java/org/dinky/service/impl/TaskServiceImpl.java +++ b/dinky-admin/src/main/java/org/dinky/service/impl/TaskServiceImpl.java @@ -429,7 +429,7 @@ public void initTenantByTaskId(Integer id) { public boolean changeTaskLifeRecyle(Integer taskId, JobLifeCycle lifeCycle) { TaskDTO taskInfoById = getTaskInfoById(taskId); taskInfoById.setStep(lifeCycle.getValue()); - if (lifeCycle == JobLifeCycle.ONLINE){ + if (lifeCycle == JobLifeCycle.ONLINE) { taskVersionService.createTaskVersionSnapshot(taskInfoById); } return saveOrUpdate(taskInfoById.buildTask());