Update the canceledBy and finishedAt fields

This commit is contained in:
Kerollmops 2022-10-18 13:57:58 +02:00 committed by Clément Renault
parent 725158b454
commit 290945e258
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
6 changed files with 29 additions and 8 deletions

View file

@ -397,6 +397,7 @@ impl IndexScheduler {
started_at: None,
finished_at: None,
error: None,
canceled_by: None,
details: kind.default_details(),
status: Status::Enqueued,
kind: kind.clone(),
@ -478,6 +479,7 @@ impl IndexScheduler {
started_at: task.started_at,
finished_at: task.finished_at,
error: task.error,
canceled_by: task.canceled_by,
details: task.details,
status: task.status,
kind: match task.kind {