mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Wait 10 seconds in case of irrecoverable error
This commit is contained in:
parent
49add50cb3
commit
e1aa534389
1 changed files with 2 additions and 2 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue