feat: add healthy filter for workspace queries by sreya · Pull Request #21743 · coder/coder
Adds support for filtering workspaces by health status using healthy:true or healthy:false in the search query. The filter only applies to running workspaces (status=running or unset). A workspace is considered unhealthy if any of its agents are: - Disconnected - Timed out waiting to connect - Lost connection (no recent heartbeat) - In error or shutting down lifecycle states Fixes #21623
- healthy:true translates to has-agent:connected - healthy:false translates to has-agent:disconnected,timeout - Changed has-agent to accept multiple statuses (text array) - Removed duplicate healthy SQL block
sreya
marked this pull request as ready for review
sreya
deleted the
filtering-k5qd
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters