mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Add index scheduler tests for task cancelation
This commit is contained in:
parent
12669bf07c
commit
d92425658e
13 changed files with 511 additions and 6 deletions
|
@ -129,7 +129,7 @@ pub fn snapshot_task(task: &Task) -> String {
|
|||
started_at: _,
|
||||
finished_at: _,
|
||||
error,
|
||||
canceled_by: _,
|
||||
canceled_by,
|
||||
details,
|
||||
status,
|
||||
kind,
|
||||
|
@ -137,6 +137,9 @@ pub fn snapshot_task(task: &Task) -> String {
|
|||
snap.push('{');
|
||||
snap.push_str(&format!("uid: {uid}, "));
|
||||
snap.push_str(&format!("status: {status}, "));
|
||||
if let Some(canceled_by) = canceled_by {
|
||||
snap.push_str(&format!("canceled_by: {canceled_by}, "));
|
||||
}
|
||||
if let Some(error) = error {
|
||||
snap.push_str(&format!("error: {error:?}, "));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue