Skip to content

Commit

Permalink
Fix leadertoken log line (#3526)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Martin <chris@cmartinit.co.uk>
Co-authored-by: Chris Martin <chris@cmartinit.co.uk>
  • Loading branch information
d80tb7 and d80tb7 authored Apr 22, 2024
1 parent fa8b9d6 commit ab210ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (s *Scheduler) Run(ctx *armadacontext.Context) error {
ctx := armadacontext.WithLogField(ctx, "cycleId", shortuuid.New())
leaderToken := s.leaderController.GetToken()
fullUpdate := false
ctx.Infof("received leaderToken; leader status is %t", leaderToken)
ctx.Infof("received leaderToken; leader status is %t", leaderToken.Leader())

// If we are becoming leader then we must ensure we have caught up to all Pulsar messages
if leaderToken.Leader() && leaderToken != prevLeaderToken {
Expand Down

0 comments on commit ab210ed

Please sign in to comment.