Skip to content

Commit fd48eeb

Browse files
committed
#275 Changed the requeue time from 5min to 1min
This is done as a compromise between speed and performance see discussion: #1749 (comment) Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
1 parent 463d4c0 commit fd48eeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator/controllers/execution/scheduledscan_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func (r *ScheduledScanReconciler) Reconcile(ctx context.Context, req ctrl.Reques
120120
if scheduledScan.Spec.ConcurrencyPolicy == executionv1.ForbidConcurrent && len(InProgressScans) > 0 {
121121
log.V(8).Info("concurrency policy blocks concurrent runs, skipping", "num active", len(InProgressScans))
122122
r.Recorder.Event(&scheduledScan, "Normal", "ConcurrencyPolicyBlocks", "Concurrency policy blocks concurrent runs, skipping")
123-
return ctrl.Result{RequeueAfter: 5 * time.Minute}, nil
123+
return ctrl.Result{RequeueAfter: 1 * time.Minute}, nil
124124
}
125125

126126
// ...or instruct us to replace existing ones...

0 commit comments

Comments
 (0)