Skip to content

Conversation

@lizrabuya
Copy link
Contributor

Description

Currently, the command bk job list --queue={queue name} only retrieves from cluster queues with queue name that matches the filter. We still have a few customers that uses unclustered agents, and when they run this command, they expect to return jobs that match when filtering jobs by AgentQueryRules. This PR implements the functionality to filter jobs based on AgentQueryRules

Changes

Add a graphQL query to filter jobs based on the AgentQueryRules filter if the --queue option is present. This query will be called when no job is returned when filtering from cluster queues.

Testing

  • Tests have run locally (with go test ./...)
  • Code is formatted (with go fmt ./...)

@lizrabuya lizrabuya requested a review from a team as a code owner January 12, 2026 03:25
@JoeColeman95 JoeColeman95 merged commit fee6a91 into main Jan 12, 2026
1 check passed
@JoeColeman95 JoeColeman95 deleted the sup-5935-job-list-unclustered-agents branch January 12, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants