mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Expose a route to get the update file content of a task
This commit is contained in:
parent
0c3e7fe963
commit
df40533741
4 changed files with 98 additions and 1 deletions
|
@ -8,6 +8,7 @@ mod tasks_test;
|
|||
mod test;
|
||||
|
||||
use std::collections::BTreeMap;
|
||||
use std::fs::File as StdFile;
|
||||
use std::time::Duration;
|
||||
|
||||
use file_store::FileStore;
|
||||
|
@ -216,6 +217,11 @@ impl Queue {
|
|||
}
|
||||
}
|
||||
|
||||
/// Open and returns the task's content File.
|
||||
pub fn update_file(&self, uuid: Uuid) -> file_store::Result<StdFile> {
|
||||
self.file_store.get_update(uuid)
|
||||
}
|
||||
|
||||
/// Delete a file from the index scheduler.
|
||||
///
|
||||
/// Counterpart to the [`create_update_file`](IndexScheduler::create_update_file) method.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue