diff --git a/client-rs b/client-rs index 97791be38..ef7a6df21 160000 --- a/client-rs +++ b/client-rs @@ -1 +1 @@ -Subproject commit 97791be3892216c9335cbad145b592ff03905474 +Subproject commit ef7a6df21a9947317edf2b51de834efbe5bcaccc diff --git a/internal/job/job.go b/internal/job/job.go index abcc21918..b7ab79ede 100644 --- a/internal/job/job.go +++ b/internal/job/job.go @@ -105,6 +105,7 @@ type GroupJobState struct { GroupUUID string State string CreatedAt time.Time + UpdatedAt time.Time JobStates []*machineryv1tasks.TaskState } @@ -125,6 +126,7 @@ func (t *Job) GetGroupJobState(groupID string) (*GroupJobState, error) { GroupUUID: groupID, State: machineryv1tasks.StateFailure, CreatedAt: taskState.CreatedAt, + UpdatedAt: time.Now(), JobStates: taskStates, }, nil } @@ -137,6 +139,7 @@ func (t *Job) GetGroupJobState(groupID string) (*GroupJobState, error) { GroupUUID: groupID, State: machineryv1tasks.StatePending, CreatedAt: taskState.CreatedAt, + UpdatedAt: time.Now(), JobStates: taskStates, }, nil } @@ -146,6 +149,7 @@ func (t *Job) GetGroupJobState(groupID string) (*GroupJobState, error) { GroupUUID: groupID, State: machineryv1tasks.StateSuccess, CreatedAt: taskStates[0].CreatedAt, + UpdatedAt: time.Now(), JobStates: taskStates, }, nil }