Skip to content

Commit

Permalink
[INLONG-11533][Manager] Enable Manager to use multiple scheduling eng…
Browse files Browse the repository at this point in the history
…ines simultaneously
  • Loading branch information
ZKpLo committed Nov 22, 2024
1 parent 3700baa commit f855fdd
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ public class ScheduleOperatorImpl implements ScheduleOperator {

private OfflineJobOperator offlineJobOperator;

private ScheduleEngineClient scheduleEngineClient;

@Override
@Transactional(rollbackFor = Throwable.class)
public int saveOpt(ScheduleInfoRequest request, String operator) {
Expand Down Expand Up @@ -89,10 +87,7 @@ private void registerScheduleInfoForApprovedGroup(ScheduleInfo scheduleInfo, Str
}

private ScheduleEngineClient getScheduleEngineClient(String scheduleEngine) {
if (scheduleEngineClient == null) {
scheduleEngineClient = scheduleClientFactory.getInstance(scheduleEngine);
}
return scheduleEngineClient;
return scheduleClientFactory.getInstance(scheduleEngine);
}

@Override
Expand Down

0 comments on commit f855fdd

Please sign in to comment.