Skip to content

Priority Queues #39

Description

@JBraunsmaJr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions