Skip to content

💡 feat: Add --state and --queue filter for bk agent list #544

@facingfrost

Description

@facingfrost

Is your feature request related to a problem?

During production, when host is down, agents will be paused to prevent jobs running on problematic queue.
We need to resume the agents in bulk after hosts are back in healthy state.
Thus we want to have a filter for --state and --queue for bk agent list command.
Example usage:

$ bk agent list --state paused
$ bk agent list --queue test-queue
$ bk agent list --state paused --queue test-queue

Describe the solution you'd like.

Add more filters for bk agent list command.

Describe alternatives you've considered.

No response

Additional context

No response

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions