Add index scheduler tests for task cancelation

This commit is contained in:
Loïc Lecrenier 2022-10-25 11:42:14 +02:00 committed by Clément Renault
parent 12669bf07c
commit d92425658e
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
13 changed files with 511 additions and 6 deletions

View file

@ -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:?}, "));
}