Not all builds are created equal. A hotfix on main should jump the queue over a developer's feature branch commit. Currently all runs compete equally for agents.
# Project-level queue configuration
queue:
priorities:
- branch: main
priority: critical # always gets next available agent
- branch: hotfix/*
priority: high
- branch: release/*
priority: high
- condition: pr()
priority: normal
- default:
priority: low
The scheduler's LeastNext query gains an ORDER BY priority clause. A critical run that arrives while an agent is busy finishing a low priority run can preempt it (with cleanup) or simply go first when the agent becomes available. Intent is to remove frustration of watching a hotfix queue behind 10 feature branch builds.
Not all builds are created equal. A
hotfixonmainshould jump the queue over a developer's feature branch commit. Currently all runs compete equally for agents.The scheduler's
LeastNextquery gains anORDER BYpriority clause. Acriticalrun that arrives while an agent is busy finishing alowpriority run can preempt it (with cleanup) or simply go first when the agent becomes available. Intent is to remove frustration of watching a hotfix queue behind 10 feature branch builds.