Skip to content

Commit

Permalink
Workflow minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RemindD committed Aug 7, 2024
1 parent 1ad5c6b commit c3e4823
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ func mergeStageStatus(activationState *model.ActivationState, current model.Stag
latestStage := &activationState.Status.StageHistory[len(activationState.Status.StageHistory)-1]
if latestStage.Status == v1alpha2.Done && latestStage.NextStage == "" {
activationState.Status.Status = v1alpha2.Done
} else if latestStage.Status == v1alpha2.Paused {
activationState.Status.Status = v1alpha2.Paused
} else {
activationState.Status.Status = v1alpha2.Running
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var rLog = logger.NewLogger("coa.runtime")

const (
entryCountPerList = 100
separator = ":"
separator = "*"
)

type RedisStateProviderConfig struct {
Expand Down
3 changes: 1 addition & 2 deletions k8s/apis/workflow/v1/activation_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ import (
type ActivationStatus struct {
Status v1alpha2.State `json:"status,omitempty"`
StatusMessage string `json:"statusMessage,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`
ActivationGeneration string `json:"activationGeneration,omitempty"`
UpdateTime string `json:"updateTime,omitempty"`
StageHistory []StageStatus `json:"stagehistory,omitempty"`
StageHistory []StageStatus `json:"stageHistory,omitempty"`
}

type StageStatus struct {
Expand Down
4 changes: 1 addition & 3 deletions k8s/config/oss/crd/bases/workflow.symphony_activations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ spec:
properties:
activationGeneration:
type: string
errorMessage:
type: string
stagehistory:
stageHistory:
items:
properties:
errorMessage:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ spec:
properties:
activationGeneration:
type: string
errorMessage:
type: string
stagehistory:
stageHistory:
items:
properties:
errorMessage:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ spec:
name: deploy
provider: providers.stage.materialize
stageSelector: ""
schedule: "2020-10-31T12:00:00-07:00"
config:
baseUrl: http://symphony-service:8080/v1alpha2/
user: admin
Expand Down

0 comments on commit c3e4823

Please sign in to comment.