feat: add durable safe retries with uncertainty tracking and SDK examples
This commit is contained in:
@@ -29,6 +29,8 @@ type Attempt struct {
|
||||
EndedAt *time.Time `db:"ended_at"`
|
||||
// ErrorCode 稳定错误分类,供恢复策略判断;不得写入敏感原始错误;可为空,表示尚未设置该关联或值。
|
||||
ErrorCode *string `db:"error_code"`
|
||||
// Retryable Worker 对明确失败声明可安全重试;只用于 FAILED,不证明未知效果安全。
|
||||
Retryable bool `db:"retryable"`
|
||||
// Result 已保存的结果或结果引用 JSON;未取得结果时为空。
|
||||
Result core.JSON `db:"result"`
|
||||
// ResultDigest 结果语义摘要,用于识别确认重报与冲突结果;可为空,表示尚未设置该关联或值。
|
||||
|
||||
Reference in New Issue
Block a user