Overview

Scheduled API-driven repository scans (for example hundreds of default branches per weekend) are processed asynchronously in queued batches. Aqua does not expose per-repository queue-to-complete duration in the UI or public API for SCM-integrated repos. Understanding API limits, branch handling, and safe batch intervals helps plan multi-branch coverage without overloading the tenant.


Scan Duration Visibility

SCM-integrated repositories (UI or API queue): There is currently no built-in Aqua UI or public API field that reports exact time from queue submission to scan completion.


Approximations:

  • CI pipeline wall-clock time for scans triggered in CI

  • External orchestration timestamps (when your scheduler enqueued vs when UI shows Completed)

  • Integration-level observability in your automation logs

Completion time depends on repository size, dependency manifests, queue backlog, and scanner pool availability.


API Batching and Rate

Topic

Guidance

Repositories per API request

Up to 10 repository entries per scan request

Delay between batches

No fixed 1 minute requirement; ~2 seconds between batches is generally acceptable from an API rate-limit perspective

Parallelism

Scans are queued and processed asynchronously; large volumes increase wait time, not instantaneous parallel execution of every repo


Example pattern that has been used in production: ~491 repositories, batches of 10 every 2 seconds, weekly schedule—completion often by early the following week without observable platform instability.


Multi-Branch Scanning

The v2 scan API supports scanning specific branches, but:

  • Do not include multiple branches of the same repository in one request (deduplication may collapse them into a single job).

  • Send one branch per repository per request.

  • Scanning four branches across 500 repositories implies up to 2,000 discrete scan jobs—plan longer overall completion windows than default-branch-only schedules.

System Overload Considerations

There is no published hard global cap on queued SCM scans, but practical limits emerge from:

  • Queue depth and scanner capacity

  • Per-repo SAST/reachability cost (large monorepos dominate wall time)

  • Burst scheduling (many branches × many repos in a short window)

Recommendations:

  1. Stagger multi-branch campaigns outside default-branch weekend batches.

  2. Keep 2-second (or similar) spacing between 10-repo API batches unless supply-chain team advises otherwise for your tenant size.

  3. Monitor failed or stuck scans in Code Repositories → Scan history before widening branch scope.

Verification

  1. Record scheduler timestamps vs Aqua Completed status for a sample of repos.

  2. Confirm each API payload contains a single branch per repo ID.

  3. After expanding branch coverage, compare queue depth Monday morning vs prior single-branch baseline.

Platform Coverage

  • Component: Supply Chain Security (SaaS)

  • Integration: Git hosting SCM integrations via API or UI queue

Summary

Question

Answer

Built-in scan ETA?

Not for SCM repos in UI/API

Batch size?

10 repos per request

Interval between batches?

~2s typically fine

Multiple branches same repo?

One branch per API call


Related Resources