Add optional run end time override

This commit is contained in:
Joscha 2023-08-14 14:15:38 +02:00
parent 6b8ae19ba5
commit 01124d719b
3 changed files with 12 additions and 1 deletions

View file

@ -35,7 +35,7 @@ async fn save_work(finished: FinishedRun, db: &SqlitePool) -> somehow::Result<()
let mut tx = db.begin().await?;
let conn = tx.acquire().await?;
let end = OffsetDateTime::now_utc();
let end = finished.end.unwrap_or_else(OffsetDateTime::now_utc);
let bench_method = match finished.run.bench_method {
BenchMethod::Internal => "internal".to_string(),
BenchMethod::Repo { hash } => format!("bench repo, hash {hash}"),