diff --git a/dump/src/reader/v5/tasks.rs b/dump/src/reader/v5/tasks.rs index 125e20559..61397dd24 100644 --- a/dump/src/reader/v5/tasks.rs +++ b/dump/src/reader/v5/tasks.rs @@ -140,6 +140,13 @@ impl Task { TaskContent::Dump { .. } => None, } } + + pub fn processed_at(&self) -> Option { + match self.events.last() { + Some(TaskEvent::Succeeded { result: _, timestamp }) => Some(*timestamp), + _ => None, + } + } } impl IndexUid {