Skip to content

Commit

Permalink
Cleaning up log
Browse files Browse the repository at this point in the history
  • Loading branch information
sundargates committed Oct 16, 2023
1 parent cd735c5 commit fd490bc
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,19 @@ public MantisScheduler forClusterID(@Nullable ClusterID clusterID) {
ActorRef resourceClusterAwareSchedulerActor =
actorRefMap.computeIfAbsent(
clusterID,
(cid) -> actorSystem.actorOf(
ResourceClusterAwareSchedulerActor.props(
masterConfiguration.getSchedulerMaxRetries(),
masterConfiguration.getSchedulerMaxRetries(),
masterConfiguration.getSchedulerIntervalBetweenRetries(),
resourceClusters.getClusterFor(cid),
executeStageRequestFactory,
jobMessageRouter,
metricsRegistry),
"scheduler-for-" + cid.getResourceID()));
log.info("Created scheduler actor for cluster: {}", clusterIDOptional.get().getResourceID());
(cid) -> {
log.info("Created scheduler actor for cluster: {}", clusterIDOptional.get().getResourceID());
return actorSystem.actorOf(
ResourceClusterAwareSchedulerActor.props(
masterConfiguration.getSchedulerMaxRetries(),
masterConfiguration.getSchedulerMaxRetries(),
masterConfiguration.getSchedulerIntervalBetweenRetries(),
resourceClusters.getClusterFor(cid),
executeStageRequestFactory,
jobMessageRouter,
metricsRegistry),
"scheduler-for-" + cid.getResourceID())
});
return new ResourceClusterAwareScheduler(resourceClusterAwareSchedulerActor);
} else {
return mesosSchedulingService;
Expand Down

0 comments on commit fd490bc

Please sign in to comment.