Skip to content

Commit

Permalink
always show last run endtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Son Roy Almerol committed Oct 30, 2024
1 parent 997c896 commit acc2a5b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions store/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ func (store *Store) GetJob(id string) (*Job, error) {
return nil, err
}

job.LastRunEndtime = &task.EndTime

if task.Status == "stopped" {
job.LastRunEndtime = &task.EndTime
job.LastRunState = &task.ExitStatus

tmpDuration := task.EndTime - task.StartTime
Expand Down Expand Up @@ -201,8 +202,9 @@ func (store *Store) GetAllJobs() ([]Job, error) {
return nil, err
}

job.LastRunEndtime = &task.EndTime

if task.Status == "stopped" {
job.LastRunEndtime = &task.EndTime
job.LastRunState = &task.ExitStatus

tmpDuration := task.EndTime - task.StartTime
Expand Down

0 comments on commit acc2a5b

Please sign in to comment.