feat(coderd): return 409 Conflict for non-active task states by mafredri · Pull Request #21887 · coder/coder
mafredri added a commit that referenced this pull request
Feb 5, 2026Previously, tasks with pending provisioner jobs (not yet picked up) were incorrectly reported as "initializing". Refs #21887
Base automatically changed from mafredri/fix-task-pending-status to main
February 5, 2026 12:08Previously we returned 400 Bad Request for all non-active states. This was semantically incorrect for transitional and paused states where the request is valid but conflicts with current state. We now return 409 Conflict for pending/initializing/paused (resolvable by waiting or resuming) and 400 for error/unknown (actual problems). This enables client-side auto-resume orchestration per the task lifecycle RFC. Closes coder/internal#1265
mafredri
marked this pull request as ready for review
mafredri
deleted the
mafredri/feat-coderd-return-task-send-conflict
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters