Skip to content

Commit 25ec0cf

Browse files
committed
feat: Allow immediate retry of failed files on reload
1 parent 3f3ea20 commit 25ec0cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lc-lib/prospector/prospector.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ DelayLoop:
201201
p.fileConfigs = cfg.Section("files").(Config)
202202
// Reset flag to warn on IO errors again
203203
p.didWarnIoError = false
204+
// Reset failed entries to allow immediate retry on reload
205+
for _, info := range p.prospectors {
206+
if info.status == statusFailed {
207+
info.failedUntil = time.Now()
208+
}
209+
}
204210
}
205211

206212
now = time.Now()

0 commit comments

Comments
 (0)