Why it exists
The per-repository Actions tab answers "what is running in this repo", but it cannot answer the operational questions that matter during a pileup: which repo is monopolizing the runners, whether a release burst has queued dozens of jobs across the fleet, or whether a single stuck deploy is starving everything behind it. The cross-repo queue aggregates all of that into one list so you can triage across repositories without clicking through each one.
There are two entry points, built on the same engine (MokoGIT #1105, #1939, #2089, #2090):
- Site-admin queue - every waiting / running / blocked job across the whole instance. Gated behind the admin area, it is the global air-traffic-control view.
- Organization queue - the same table scoped to one organization's repositories, surfaced in the org navigation so org admins and members can watch their own fleet without needing site-admin rights.
How scoping works
Both views call a single shared helper, PrepareActionsQueue, that takes a set of owner IDs:
- Empty owner set - the whole instance. This is the site-admin view: with no owner filter, every repository's jobs are in scope.
- One owner ID - a single organization's repositories. This is the default org view.
- Many owner IDs - an organization plus its sub-organizations, resolved up front via
GetDescendantOrgIDs, so the org view can span the whole hierarchy in one pane.
Scope is matched through a repository subquery on owner ID, so widening from one org to an org-plus-sub-orgs is a single query change, not a join rewrite - the existing single-owner path is left untouched.
Per-viewer access filtering
Aggregating jobs across repos raises an obvious risk: a queue could leak the existence and metadata (repo name, workflow title, run and job names) of a private repo a viewer cannot access. The shared helper closes that hole with a per-viewer access filter:
- Every job is checked against the viewer's permission to read Actions on its repository. Jobs in repos the viewer cannot read are dropped before anything is rendered.
- Organization membership is not treated as sufficient - a member may still lack access to some of the org's repos, and those stay hidden.
- Site admins bypass the filter and see everything, matching the global nature of the admin view.
- Permission decisions are memoized per repository, so a queue full of jobs from a handful of repos costs one permission check per distinct repo, not one per job.
Critically, the filter runs before the header counts are computed, so the totals (waiting / running / blocked and the rest) reflect only the viewer-visible repos. Widening scope to sub-organizations can therefore never reveal a repo the viewer could not already see - the access filter is applied identically to sub-org repos.
The sub-organization toggle
When an organization has sub-organizations, the org queue offers an opt-in toggle to widen the scope (MokoGIT #1939):
- By default the queue covers only this organization's repositories.
- Adding
?suborgs=1(the toggle in the UI) widens it to the org plus every descendant sub-organization, resolved viaGetDescendantOrgIDs. - The toggle is only shown when the org actually has at least one sub-organization, so the control never appears where it would do nothing.
This follows the same opt-in, descendants-only pattern used elsewhere in MokoGIT (for example sync profiles): the parent, siblings, and unrelated orgs are never swept in, and the access filter still applies to every sub-org repo.
Status, event, and search filters
The queue table is display-filtered by a query string that both views share:
- Status (multi-select) - any combination of
waiting,running,blocked,stuck, andheld, passed as repeatedstatus=params or a comma-separated list. An empty set means "all statuses" (the default). It stays backward-compatible with a singlestatus=<value>URL. - Event - filter to a single trigger event (
push,workflow_dispatch, and so on); the dropdown is populated from the distinct events actually present in the current queue. - Search - a free-text match across repository full name, workflow / run title, and job name.
The header counts always reflect the full (post-access-filter) queue across all statuses, so the totals stay stable while the table below is narrowed by the display filters. Jobs can also be sorted by column (status, repo, workflow, run number, age, duration); the default is a triage order that surfaces stuck jobs first, then the oldest-created.
Stuck-job highlighting
Because a cross-repo queue is where you go to find trouble, each row carries a "stuck" verdict so a pileup is visible before a janitor cron silently cancels it. Running jobs use flag-based detection (elapsed time plus no-progress plus runner-lost signals) that distinguishes a genuinely wedged job from one that is merely slow but still progressing, so a long-but-healthy build is marked informational rather than red. Waiting jobs that have aged past the abandoned threshold are flagged too. The queue also surfaces dedup-held (parked duplicate) runs under their own "Held" bucket.
Layout
The table is wrapped in a horizontal-scroll container (MokoGIT #2089) so that at mid-width viewports the wide multi-column layout scrolls sideways within its region instead of overflowing or breaking the page - the counts, filters, and table stay usable on narrower screens.
Step by step: opening the queue
Site-admin view
- Go to Site Administration.
- Open the Actions Queue page. Every waiting / running / blocked job across the instance is listed.
- Use the status multi-select, event dropdown, and search box to narrow the table; the header counts stay fixed to the full queue.
Organization view
- Go to the organization, then its Actions Queue in the org navigation.
- The queue shows that org's repositories by default.
- If the org has sub-organizations, flip the Include sub-organizations toggle (or add
?suborgs=1to the URL) to span the whole subtree.
Caveats
- Access filtering is per-viewer, not per-org-membership. Being an org member does not reveal jobs for repos you cannot read Actions on; those rows are dropped before counts and rendering.
- Site admins see everything. The admin view intentionally bypasses the access filter, so admins see private-repo job metadata across the instance.
- The sub-org toggle is descendants-only. It never pulls in the parent org, siblings, or unrelated organizations, and each sub-org repo is still access-filtered.
- Stuck highlighting is advisory. The red / informational verdicts help you triage, but the real cleanup is still handled by the separate janitor crons; the queue surfacing a stuck job does not itself cancel it.
- Counts reflect the full visible queue. Narrowing the table with status, event, or search filters does not change the header totals - that is by design, so you always see the true backlog size while you drill in.
Get help
Open a support ticket or call (931) 820-0265.