mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
fix: improve job tracking
Signed-off-by: allanice001 <allanice001@gmail.com>
This commit is contained in:
@@ -44,7 +44,7 @@ func ClusterActionWorker(db *gorm.DB) archer.WorkerFn {
|
|||||||
"error": errMsg,
|
"error": errMsg,
|
||||||
}
|
}
|
||||||
if status == "succeeded" || status == "failed" {
|
if status == "succeeded" || status == "failed" {
|
||||||
updates["finised_at"] = time.Now().UTC()
|
updates["finished_at"] = time.Now().UTC().Format(time.RFC3339)
|
||||||
}
|
}
|
||||||
db.Model(&models.ClusterRun{}).Where("id = ?", runID).Updates(updates)
|
db.Model(&models.ClusterRun{}).Where("id = ?", runID).Updates(updates)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user