mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
add timestamos to dump info
This commit is contained in:
parent
39c16c0fe4
commit
33c6c4f0ee
5 changed files with 15 additions and 7 deletions
|
@ -97,7 +97,9 @@ where
|
|||
return;
|
||||
}
|
||||
let uid = generate_uid();
|
||||
|
||||
let info = DumpInfo::new(uid.clone(), DumpStatus::InProgress);
|
||||
|
||||
*self.dump_info.write().await = Some(info.clone());
|
||||
|
||||
ret.send(Ok(info)).expect("Dump actor is dead");
|
||||
|
@ -126,7 +128,7 @@ where
|
|||
}
|
||||
Err(_) => {
|
||||
error!("Dump panicked. Dump status set to failed");
|
||||
*dump_info.write().await = Some(DumpInfo::new(uid, DumpStatus::Failed));
|
||||
(*dump_info.write().await).as_mut().expect("Inconsistent dump service state").with_error("Unexpected error while performing dump.".to_string());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue