feat: serialize keyed tasks across queues with durable fencing tokens

This commit is contained in:
2026-09-17 18:25:00 +08:00
parent 993786476e
commit 958b4a8cea
43 changed files with 1319 additions and 82 deletions

View File

@@ -54,6 +54,7 @@ curl "$ORBIT_URL/v1/tasks/$TASK_ID/attempts/$ATTEMPT_ID/evidence/$EVIDENCE_ID" \
| --- | --- | --- |
| id、task_id | string / 是 | 尝试与父任务标识 |
| epoch | 十进制字符串 / 是 | 单任务执行代次;SDK uint64 |
| concurrency_token | 十进制字符串 / 否 | 有显式资源键时返回跨任务单调许可序号;SDK uint64,无键时为零并省略;历史查询不能授权执行,见 [资源键契约](keyed-concurrency.md) |
| state | string / 是 | LEASED、RUNNING、SUCCEEDED、FAILED、CANCELLED、EXPIRED、UNKNOWN;枚举不表示全部状态转换已实现 |
| revision | 十进制字符串 / 是 | 记录版本,续租及归属变化可递增;SDK uint64 |
| lease_until | UTC RFC 3339 / 是 | 数据库记录的租约期限,**查询不提供执行授权** |