Repository navigation
docs: correct get_procs() HA limitation note - #530
Merged
Merged
Conversation
get_procs() returns processes across all nodes in an HA cluster and across execution modes. Remove the outdated note and document caveats about stale metrics, unfinalized processes, and the unversioned endpoint.
nealrichardson
approved these changes
Nov 6, 2026
mconflitti-pbc
approved these changes
Nov 6, 2026
| #' * Processes that have recently ended but have not yet been finalized may | ||
| #' still appear in the results. | ||
| #' * This function uses an internal, unversioned API endpoint, so its behavior | ||
| #' and the returned columns may change in future versions of Connect. |
Contributor
There was a problem hiding this comment.
Not blocking, since this was already wrong before this PR. The @return list just below doesn't match what get_procs() returns. Worth a follow-up issue?
- It uses camelCase names (
appId,cpuCurrent, ...), but the server sends snake_case (app_id,cpu_current, ...), andget_procs()keeps them as-is. - It lists
cpuTotal, which the server doesn't send. - It leaves out
hostname,job_key,image,start_time, andheartbeat.
This was referenced Nov 6, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #529.
The
get_procs()docs said it only returns data for the server that responds to the request in an HA cluster. That's no longer true:GET /__api__/metrics/procsbuilds its list from the shared database, so it returns processes from every node and every execution mode (including off-host / Kubernetes).This PR:
NA; processes that ended recently but haven't been finalized may still appear; the endpoint is internal and unversioned, so it may change.Docs only, no code changes.