feat: serialize keyed tasks across queues with durable fencing tokens
This commit is contained in:
@@ -35,6 +35,10 @@ type Task struct {
|
||||
RecoverySafety RecoverySafety `db:"recovery_safety"`
|
||||
// BusinessKey 业务侧关联键,用于检索追踪,不自动提供业务幂等;可为空,表示尚未设置该关联或值。
|
||||
BusinessKey *string `db:"business_key"`
|
||||
// ConcurrencyKey 显式互斥资源键,命名空间内跨队列共享;空表示不启用。
|
||||
ConcurrencyKey *string `db:"concurrency_key"`
|
||||
// ConcurrencyKeyDigest 资源键精确 UTF-8 字节的域分隔摘要,与键同时为空或非空。
|
||||
ConcurrencyKeyDigest *core.Digest `db:"concurrency_key_digest"`
|
||||
// OwnerKind 来源资源类型,例如流程激活;为空表示无来源关联。
|
||||
OwnerKind *string `db:"owner_kind"`
|
||||
// OwnerID 来源资源标识,必须与来源类型同时有值或同时为空。
|
||||
|
||||
Reference in New Issue
Block a user