0xironclad / 0xironclad/Task-Scheduler-API

Idempotency guard

未关闭
#26 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。