Skip to content

Commit

Permalink
chore: bcs-task mysql store step message use text type (#3522)
Browse files Browse the repository at this point in the history
* chore: bcs-task mysql store step message use text type

* chore: bcs-task mysql store step message use text type
  • Loading branch information
ifooth committed Sep 27, 2024
1 parent 81cd8a9 commit 11bb636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bcs-common/common/task/revokers/etcd/revoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (b *etcdRevoker) cleanupRevokeSign() {
defer b.mtx.Unlock()

for taskID, sign := range b.revokeSignMap {
if time.Since(sign.registerTime) > time.Hour*24 {
if time.Since(sign.registerTime) > time.Hour*24*3 {
sign.cancel()
delete(b.revokeSignMap, taskID)
}
Expand Down
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 11bb636

Please sign in to comment.