Release the next highest-priority work unit on a process path
POST/paths/:pathId/work-releases
Applies the release policy to a process path's WorkPool — the ReleaseNextWork use case. Admits the pending work unit with the earliest (most urgent) CPT, transitioning it Pending → Released. This is continuous, priority-ordered admission (waveless), not a batch/wave release. A release-fed pool enforces its WIP limit as a hard invariant: releasing past the limit fails with 409. Publishes WorkReleased, which downstream fulfillment-execution consumes to create a Task. This is a collection-level command on the path's work pool (not scoped to a single work unit id, since the caller does not choose which unit is released — the priority policy does), analogous in REST terms to a resource-scoped bulk action.
Request
Responses
- 200
- 400
- 404
- 409
- 500
The released work unit, now in Released state.
Response Headers
Present, with value true, only when this answer is a replay of a stored earlier answer for the same Idempotency-Key.
The Idempotency-Key header is missing (idempotency-key-required) or malformed (idempotency-key-invalid), or the pathId is invalid (invalid-path-id).
No work pool has been provisioned for this path yet (no work unit has ever been enqueued).
The pool is empty (work-pool-empty), a release-fed pool is already at its WIP limit (wip-limit-reached), the pool was modified concurrently (concurrent-modification), or the Idempotency-Key was already used with a different request (idempotency-key-reused). Distinguish by the problem type.
An unexpected server-side failure (e.g. a repository or event-publisher error).