mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 08:03:50 +00:00
fix: also store and display "started at" for completed jobs (#33)
This commit is contained in:
+4
-1
@@ -92,6 +92,7 @@ struct CompletedJob {
|
||||
parent_job: Option<Uuid>,
|
||||
created_by: String,
|
||||
created_at: chrono::DateTime<chrono::Utc>,
|
||||
started_at: chrono::DateTime<chrono::Utc>,
|
||||
duration: i32,
|
||||
success: bool,
|
||||
script_hash: Option<ScriptHash>,
|
||||
@@ -433,7 +434,7 @@ async fn list_jobs(
|
||||
"parent_job",
|
||||
"created_by",
|
||||
"created_at",
|
||||
"null as started_at",
|
||||
"started_at",
|
||||
"null as scheduled_for",
|
||||
"null as running",
|
||||
"script_hash",
|
||||
@@ -544,6 +545,7 @@ async fn list_completed_jobs(
|
||||
"parent_job",
|
||||
"created_by",
|
||||
"created_at",
|
||||
"started_at",
|
||||
"duration",
|
||||
"success",
|
||||
"script_hash",
|
||||
@@ -866,6 +868,7 @@ impl From<UnifiedJob> for Job {
|
||||
parent_job: uj.parent_job,
|
||||
created_by: uj.created_by,
|
||||
created_at: uj.created_at,
|
||||
started_at: uj.started_at.unwrap_or(uj.created_at),
|
||||
duration: uj.duration.unwrap(),
|
||||
success: uj.success.unwrap(),
|
||||
script_hash: uj.script_hash,
|
||||
|
||||
Reference in New Issue
Block a user