Put the original URL query in the tasks details

This commit is contained in:
Kerollmops 2022-10-18 17:47:47 +02:00 committed by Clément Renault
parent 751e9bac3b
commit c2ec4a089b
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 18 additions and 10 deletions

View file

@ -496,7 +496,7 @@ impl IndexScheduler {
};
let mut wtxn = self.env.write_txn()?;
let nbr_deleted_tasks = self.delete_matched_tasks(&mut wtxn, matched_tasks)?;
let deleted_tasks_count = self.delete_matched_tasks(&mut wtxn, matched_tasks)?;
task.status = Status::Succeeded;
match &mut task.details {
@ -505,7 +505,7 @@ impl IndexScheduler {
deleted_tasks,
original_query: _,
}) => {
*deleted_tasks = Some(nbr_deleted_tasks);
*deleted_tasks = Some(deleted_tasks_count);
}
_ => unreachable!(),
}