chore: update rust client version (#3403)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
934ce3a2b5
commit
97f21cfbf5
|
|
@ -1 +1 @@
|
|||
Subproject commit 97791be3892216c9335cbad145b592ff03905474
|
||||
Subproject commit ef7a6df21a9947317edf2b51de834efbe5bcaccc
|
||||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue