mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-23 23:00:59 +00:00
Add reader.v5.tasks.Task.processed_at.
There was no way to "quickly" get the processed date.
This commit is contained in:
@ -140,6 +140,13 @@ impl Task {
|
||||
TaskContent::Dump { .. } => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn processed_at(&self) -> Option<OffsetDateTime> {
|
||||
match self.events.last() {
|
||||
Some(TaskEvent::Succeeded { result: _, timestamp }) => Some(*timestamp),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl IndexUid {
|
||||
|
Reference in New Issue
Block a user