Skip to content

Commit

Permalink
chore: update rust client version (#3403)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Jul 31, 2024
1 parent 934ce3a commit 97f21cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions internal/job/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ type GroupJobState struct {
GroupUUID string
State string
CreatedAt time.Time
UpdatedAt time.Time
JobStates []*machineryv1tasks.TaskState
}

Expand All @@ -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
}
Expand All @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit 97f21cf

Please sign in to comment.