Remove progress from task

This commit is contained in:
Louis Dureuil 2024-11-12 12:23:13 +01:00
parent 6094bb299a
commit 1fcd5f091e
No known key found for this signature in database
5 changed files with 2 additions and 20 deletions

View file

@ -148,7 +148,6 @@ pub fn snapshot_task(task: &Task) -> String {
enqueued_at: _,
started_at: _,
finished_at: _,
progress: _,
error,
canceled_by,
details,

View file

@ -978,12 +978,7 @@ impl IndexScheduler {
Ok((
ret.map(|task| {
if processing.contains(task.uid) {
Task {
status: Status::Processing,
progress: progress.clone(),
started_at: Some(started_at),
..task
}
Task { status: Status::Processing, started_at: Some(started_at), ..task }
} else {
task
}
@ -1025,7 +1020,6 @@ impl IndexScheduler {
enqueued_at: OffsetDateTime::now_utc(),
started_at: None,
finished_at: None,
progress: None,
error: None,
canceled_by: None,
details: kind.default_details(),
@ -1606,8 +1600,6 @@ impl<'a> Dump<'a> {
enqueued_at: task.enqueued_at,
started_at: task.started_at,
finished_at: task.finished_at,
/// FIXME: should we update dump to contain progress information? 🤔
progress: None,
error: task.error,
canceled_by: task.canceled_by,
details: task.details,

View file

@ -345,8 +345,6 @@ impl IndexScheduler {
enqueued_at,
started_at,
finished_at,
/// FIXME: assert something here? ask tamo 🤔
progress: _,
error: _,
canceled_by,
details,