Skip to content

Commit

Permalink
chore: bcs-task mysql store step message use text type
Browse files Browse the repository at this point in the history
  • Loading branch information
ifooth committed Sep 11, 2024
1 parent 1c4ef18 commit d4bb841
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bcs-common/common/task/stores/mysql/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ type StepRecord struct {
Params map[string]string `json:"input" gorm:"type:text;serializer:json"`
Payload string `json:"payload" gorm:"type:text"`
Status string `json:"status" gorm:"type:varchar(255)"`
Message string `json:"message" gorm:"type:varchar(255)"`
Message string `json:"message" gorm:"type:text"`
ETA *time.Time `json:"eta"`
SkipOnFailed bool `json:"skipOnFailed"`
RetryCount uint32 `json:"retryCount"`
Expand Down Expand Up @@ -142,6 +142,7 @@ func (t *StepRecord) ToStep() *types.Step {
Payload: t.Payload,
Status: t.Status,
Message: t.Message,
ETA: t.ETA,
SkipOnFailed: t.SkipOnFailed,
RetryCount: t.RetryCount,
MaxRetries: t.MaxRetries,
Expand Down

0 comments on commit d4bb841

Please sign in to comment.