Handle empty payloads

This commit is contained in:
Louis Dureuil 2025-01-16 18:28:43 +01:00
parent 59242b9c4f
commit 2cf57d584e
No known key found for this signature in database

View File

@ -63,8 +63,6 @@ impl<'a> Dump<'a> {
_ if task.status != Status::Enqueued => Some(Uuid::nil()),
None if task.status == Status::Enqueued && task_has_no_docs => {
let (uuid, mut file) = self.index_scheduler.queue.create_update_file(false)?;
let builder = DocumentsBatchBuilder::new(&mut file);
builder.into_inner()?;
file.persist()?;
Some(uuid)