feat(workflow): exec_workflow 增加重试/心跳三列与可恢复查询 DAO
This commit is contained in:
@@ -19,6 +19,9 @@ type ExecWorkflow struct {
|
||||
TotalFee float64 `orm:"total_fee" json:"totalFee" description:"总费用"`
|
||||
ErrorMessage string `orm:"error_message" json:"errorMessage" description:"错误信息(友好提示)"`
|
||||
Error string `orm:"error" json:"error" description:"错误明细(原始错误)"`
|
||||
Retryable int `orm:"retryable" json:"retryable" description:"是否可重试:0-用户取消,1-程序报错"`
|
||||
RetryCount int `orm:"retry_count" json:"retryCount" description:"已重试次数"`
|
||||
LastHeartbeat int64 `orm:"last_heartbeat" json:"lastHeartbeat" description:"最后心跳时间(毫秒时间戳)"`
|
||||
}
|
||||
|
||||
type execWorkflowCol struct {
|
||||
@@ -33,6 +36,9 @@ type execWorkflowCol struct {
|
||||
TotalFee string
|
||||
ErrorMessage string
|
||||
Error string
|
||||
Retryable string
|
||||
RetryCount string
|
||||
LastHeartbeat string
|
||||
}
|
||||
|
||||
var ExecWorkflowCol = execWorkflowCol{
|
||||
@@ -47,4 +53,7 @@ var ExecWorkflowCol = execWorkflowCol{
|
||||
TotalFee: "total_fee",
|
||||
ErrorMessage: "error_message",
|
||||
Error: "error",
|
||||
Retryable: "retryable",
|
||||
RetryCount: "retry_count",
|
||||
LastHeartbeat: "last_heartbeat",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user