0xironclad / 0xironclad/Task-Scheduler-API
Idempotency guard
未关闭
robustness
scheduler
- 主要语言
- TypeScript
- 星标
- 0
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
描述
Ensure a task can’t be double-picked by two processes. Use `FOR UPDATE SKIP LOCKED` or atomic status transition.
贡献指南
这个仓库没有索引到贡献指南
调研方向
Look for the task picking logic, likely in a service or worker file. Research PostgreSQL's FOR UPDATE SKIP LOCKED for row-level locking and implement an atomic status transition from 'pending' to 'processing'. Check existing database schema for the task status field and ensure the update query is idempotent.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- postgresql, typescript
- 领域
- backend, databases
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100