Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
EronWright committed Nov 27, 2024
1 parent 191b359 commit 153f9c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion operator/internal/controller/pulumi/stack_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,11 @@ func (r *StackReconciler) Reconcile(ctx context.Context, request ctrl.Request) (
// Reconcile every resyncFreq to check for new commits to the branch.
pollFreq := resyncFreq(instance)
log.Info("Commit hash unchanged. Will poll for new commits.", "pollFrequency", pollFreq)
requeueAfter = max(1*time.Second, min(pollFreq, requeueAfter))
if requeueAfter > 0 {
requeueAfter = max(1*time.Second, min(pollFreq, requeueAfter))
} else {
requeueAfter = max(1*time.Second, pollFreq)
}
} else {
log.Info("Commit hash unchanged.")
}
Expand Down

0 comments on commit 153f9c8

Please sign in to comment.