Skip to content

Fix category bracket generation race - #4

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-inspection-70a4
Draft

Fix category bracket generation race#4
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-inspection-70a4

Conversation

@cursor

@cursor cursor Bot commented May 5, 2026

Copy link
Copy Markdown

Summary

  • Serialize category bracket generation/finalization with an expiring tournament-level lock.
  • Return idempotent success when another finalize request has already moved the tournament to categories.
  • Release generation lock on both success and failure to keep retries safe.

Validation

  • git diff HEAD~1..HEAD --check
  • npm run typecheck / npm test could not run because Node/npm are not installed in this cloud image.
Open in Web View Automation 

Co-authored-by: Octavio Frangipani <octapf@users.noreply.github.com>
@vercel

vercel Bot commented May 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
matchpoint Ready Ready Preview, Comment May 5, 2026 10:37am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant