Skip to content

Commit 6749277

Browse files
committed
software: Add times to execution
1 parent af40521 commit 6749277

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/software/install.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func PrepareSoftwareMigration(executionID string, targetServers []softwaremodel.
193193
_, err = dao.ExecutionStatusCreate(&model.ExecutionStatus{
194194
ExecutionID: executionID,
195195
TargetMappings: targetMappings,
196-
StartedAt: time.Time{},
196+
StartedAt: time.Now(),
197197
FinishedAt: time.Time{},
198198
})
199199
if err != nil {
@@ -246,6 +246,7 @@ func MigrateSoftware(execution *Execution) {
246246
_ = execution.SourceClient.Close()
247247
_ = execution.TargetClient.Close()
248248
executionStatus.TargetMappings[idx].Status = exStatus
249+
executionStatus.FinishedAt = time.Now()
249250
err := dao.ExecutionStatusUpdate(executionStatus)
250251
if err != nil {
251252
logger.Println(logger.ERROR, true, "migrateSoftware: ExecutionID="+execution.ExecutionID+

0 commit comments

Comments
 (0)