Skip to content

Run Priority ​

When your organisation is at its concurrency limit, new tests wait in a queue until a slot frees up. Run priority lets you choose which of your own queued runs starts first. For example, you can run release checks at high and a nightly regression suite at low.

Priority is set per run with --priority. A run without it is normal, so nothing changes unless you set it.

Usage ​

bash
dcd cloud app.apk flows/ --priority high
LevelStarts
highBefore your queued normal and low runs
normalThe default. Before your queued low runs
lowAfter your queued high and normal runs

The priority applies to the whole run: every flow in that dcd cloud run gets the same priority.

How it works ​

Once you reach your maximum concurrency, extra tests are queued until you're back under your limit (see Concurrency & Parallel Runs). Each time a slot frees up, your queued high tests start first, then normal, then low.

  • Priority takes effect when your team is at its maximum concurrency and runs are waiting in the queue. When you're under the limit, nothing is held back, so there is nothing to reorder.
  • Retries keep the original run's priority. This covers both automatic retries from --retry and retries you queue from the console.

FAQ ​

Are priority runs charged any differently? ​

No.

Do priority tests affect other teams and their tests? ​

No, priority is scoped to only your team's queue.

What happens to low runs that get bumped continously? ​

A run that has been queued for more than 6 hours is started first, no matter it's priority. A steady stream of high runs can delay your low runs, but can't hold them back indefinitely.

CI integrations ​

yaml
- uses: devicecloud-dev/device-cloud-for-maestro@v2
  with:
    api-key: ${{ secrets.DCD_API_KEY }}
    app-file: build/app.apk
    priority: high

See the priority input.

AI agents ​

The MCP server's dcd_run_cloud_test tool takes an optional priority parameter with the same values. See the Tools Reference.