mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-03 18:15:46 +01:00
Fix and crash when the tasks path is unknown
This commit is contained in:
parent
01c13c98ac
commit
719fdd701b
@ -422,9 +422,11 @@ impl IndexScheduler {
|
||||
tempfile::NamedTempFile::new_in(inner.env.path()).unwrap();
|
||||
|
||||
log::info!("Downloading the index scheduler database.");
|
||||
let tasks_snapshot = format!("{snapshot_dir}/tasks.mdb");
|
||||
s3.get_object_to_writer(tasks_snapshot, &mut tasks_file)
|
||||
let tasks_snapshot = format!("{snapshot_dir}.tasks.mdb");
|
||||
let status = s3
|
||||
.get_object_to_writer(tasks_snapshot, &mut tasks_file)
|
||||
.unwrap();
|
||||
assert!(matches!(status, 200 | 202));
|
||||
|
||||
log::info!("Downloading the indexes databases");
|
||||
let indexes_files =
|
||||
|
Loading…
Reference in New Issue
Block a user