Skip to content

Commit

Permalink
disable dag manager code when dag proc engine is enabled (apache#3977)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjun4084346 authored Jun 17, 2024
1 parent c064604 commit 0d4ee24
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,10 @@ private void handleLeadershipChange(NotificationContext changeContext) {
this.gitConfigMonitor.setActive(false);
}

this.dagManager.setActive(false);
this.eventBus.unregister(this.dagManager);
if (!this.configuration.isDagProcessingEngineEnabled()) {
this.dagManager.setActive(false);
this.eventBus.unregister(this.dagManager);
}

if (configuration.isOnlyAnnounceLeader()) {
this.d2Announcer.markDownServer();
Expand Down

0 comments on commit 0d4ee24

Please sign in to comment.