Skip to content

Conversation

kacpersaw
Copy link
Contributor

Closes coder/internal#885

Adds a new database method GetProvisionerJobByIDWithLock that uses FOR UPDATE without SKIP LOCKED to fix workspace build cancellation returning 500 errors when jobs are locked.

@kacpersaw kacpersaw merged commit 776231d into main Sep 8, 2025
31 checks passed
@kacpersaw kacpersaw deleted the kacpersaw/fix-patch-cancel-workspace-build branch September 8, 2025 13:40
@github-actions github-actions bot locked and limited conversation to collaborators Sep 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flake: TestPatchCancelWorkspaceBuild/User_is_allowed_to_cancel
2 participants