Wait 10 seconds in case of irrecoverable error

This commit is contained in:
Louis Dureuil 2025-04-23 14:14:24 +02:00
parent 49add50cb3
commit e1aa534389
No known key found for this signature in database

View File

@ -398,9 +398,9 @@ impl IndexScheduler {
Ok(Ok(TickOutcome::StopProcessingForever)) => break,
Ok(Err(e)) => {
tracing::error!("{e}");
// Wait one second when an irrecoverable error occurs.
// Wait when an irrecoverable error occurs.
if !e.is_recoverable() {
std::thread::sleep(Duration::from_secs(1));
std::thread::sleep(Duration::from_secs(10));
}
}
Err(_panic) => {