@@ -244,7 +244,7 @@ func (c *StoreReconciler) ReconcileAll(ctx context.Context) error {
244
244
// Reconcile presets in parallel. Each preset in its own goroutine.
245
245
for _ ,preset := range snapshot .Presets {
246
246
if snapshot .IsHardLimited (preset .ID ) {
247
- logger .Debug (ctx ,"skipping hard limited preset" ,slog .F ("id " ,preset .ID ),slog .F ("name" ,preset .Name ))
247
+ logger .Debug (ctx ,"skipping hard limited preset" ,slog .F ("preset_id " ,preset .ID ),slog .F ("name" ,preset .Name ))
248
248
continue
249
249
}
250
250
@@ -313,10 +313,7 @@ func (c *StoreReconciler) SnapshotState(ctx context.Context, store database.Stor
313
313
return xerrors .Errorf ("failed to get backoffs for presets: %w" ,err )
314
314
}
315
315
316
- // TODO: make hardLimit configurable
317
- hardLimit := int64 (1 )
318
- hardLimit = c .cfg .FailureHardLimit
319
- hardLimitedPresets ,err := db .GetPresetsAtFailureLimit (ctx ,hardLimit )
316
+ hardLimitedPresets ,err := db .GetPresetsAtFailureLimit (ctx ,c .cfg .FailureHardLimit )
320
317
if err != nil {
321
318
return xerrors .Errorf ("failed to get hard limited presets: %w" ,err )
322
319
}