Add the payload size to the parameters

This commit is contained in:
Kerollmops
2025-06-25 18:24:50 +02:00
committed by Clément Renault
parent a743da3061
commit 63031219c5
13 changed files with 130 additions and 41 deletions

View File

@@ -362,12 +362,19 @@ impl IndexScheduler {
Ok((vec![task], ProcessBatchInfo::default()))
}
Batch::Export { mut task } => {
let KindWithContent::Export { url, indexes, api_key } = &task.kind else {
let KindWithContent::Export { url, api_key, payload_size, indexes } = &task.kind
else {
unreachable!()
};
let ret = catch_unwind(AssertUnwindSafe(|| {
self.process_export(url, indexes, api_key.as_deref(), progress)
self.process_export(
url,
api_key.as_deref(),
payload_size.as_ref(),
indexes,
progress,
)
}));
match ret {