Unverified Commit 7712e433 authored by gaoyan's avatar gaoyan Committed by GitHub

delete unuse code (#2648)

parent 7062163d
......@@ -225,10 +225,10 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
config.setClusterId(jobInstance.getClusterId());
}
} else if (GatewayType.LOCAL.equalsValue(task.getType())) {
JobInstance jobInstance = jobInstanceService.getById(task.getJobInstanceId());
if (task.getJobInstanceId() == null) {
config.setClusterId(null);
} else {
JobInstance jobInstance = jobInstanceService.getById(task.getJobInstanceId());
config.setClusterId(jobInstance.getClusterId());
config.setUseRemote(true);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment