mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
snapshot batch handler
This commit is contained in:
parent
8743d73973
commit
7b47e4e87a
6 changed files with 39 additions and 7 deletions
|
@ -38,7 +38,7 @@ impl SnapshotService {
|
|||
meta_env_size: self.meta_env_size,
|
||||
index_size: self.index_size,
|
||||
};
|
||||
self.scheduler.write().await.register_snapshot(snapshot_job);
|
||||
self.scheduler.write().await.schedule_snapshot(snapshot_job);
|
||||
sleep(self.snapshot_period).await;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue