Skip to content

Prioritizing & pausing requests

Requests you've submitted start as pending. The scheduler picks them up in priority order — highest first — and dispatches them to a queue where coding-agent workers consume them and produce a run. You can re-prioritize, pause, or resume requests at any time without losing state.

Each request has a numeric priority in the range −10 to +10. Higher values are dispatched earlier; the default priority is 0.

When you change a request's priority, the queue is reordered on the next scheduler tick (within seconds) — no need to cancel and resubmit.

On a pending request's detail page, change the Priority field. The queue position updates as soon as you save. The Portal exposes −10…+10 presets and ±1/±5 increments, plus bulk actions on the Runs list page.

Priority is editable while a request is pending or paused. The exact endpoint shape (single vs bulk) is in the REST API reference. At a glance:

  • Single-request priority change.
  • Bulk priority change for a list of request IDs.

Changing priority on an in-flight run doesn't interrupt the run; it takes effect on the next pickup.

Cancel one or more runs from the terminal:

Terminal window
scope run cancel -i <request-id>

You can pause a pending request to keep its place in the queue without consuming worker capacity, then resume it later. State is preserved.

The Pause button on the request detail page transitions the request to a paused state. Resume sends it back to its previous state with the same priority.

The Runs list also offers a bulk pause/resume action.

Because the scheduler dispatches by priority on every tick, a request submitted with a high priority jumps ahead of the pending queue and reaches a worker on the next dispatch — without disturbing in-flight runs and without a separate execution path. Submit normally and set priority high.

Cancel a request from its detail page in the Portal, or:

Terminal window
curl --request DELETE \
--url https://your-scope.example.com/api/v1/requests/%7BrequestId%7D

This is a soft-delete — the request is hidden from list views, logs and configuration are preserved for inspection, but no further runs will execute.

  • Bump priority when a request you care about is stuck behind bulk requests.
  • Pause when you want to free worker capacity temporarily without giving up the request's place in line.
  • Cancel when a request is no longer relevant — e.g. you spotted a bad criteria set and re-submitted with a fix.
  • Don't fight the queue. If you find yourself reprioritizing every request to +10, the priority field stops being useful. Keep the default for routine work.
  • Pause is cheap. It's safer than cancel-and-resubmit if you just need a moment to free capacity.