fix(core): Start WaitTracker only in the main container (#9600)
This commit is contained in:
committed by
GitHub
parent
d6db8cbf23
commit
08d9c9a787
@@ -27,9 +27,11 @@ export class WaitTracker {
|
||||
private readonly executionRepository: ExecutionRepository,
|
||||
private readonly ownershipService: OwnershipService,
|
||||
private readonly workflowRunner: WorkflowRunner,
|
||||
readonly orchestrationService: OrchestrationService,
|
||||
) {
|
||||
const { isSingleMainSetup, isLeader, multiMainSetup } = orchestrationService;
|
||||
private readonly orchestrationService: OrchestrationService,
|
||||
) {}
|
||||
|
||||
init() {
|
||||
const { isSingleMainSetup, isLeader, multiMainSetup } = this.orchestrationService;
|
||||
|
||||
if (isSingleMainSetup) {
|
||||
this.startTracking();
|
||||
@@ -43,7 +45,7 @@ export class WaitTracker {
|
||||
.on('leader-stepdown', () => this.stopTracking());
|
||||
}
|
||||
|
||||
startTracking() {
|
||||
private startTracking() {
|
||||
this.logger.debug('Wait tracker started tracking waiting executions');
|
||||
|
||||
// Poll every 60 seconds a list of upcoming executions
|
||||
|
||||
Reference in New Issue
Block a user