Repository navigation
Monitor: show image version per worker; exclude running tasks from backlog - #199
Merged
Merged
Conversation
Bake the release tag into every image as SHEPHERD_VERSION (build arg set by the release workflow, "dev" for local builds), report it in the worker heartbeat, and roll the distinct versions up per worker type. Cards show the version under the worker name and flag a mixed fleet (e.g. mid-rollout) with per-version replica counts; the replica modal gains a Version column. Older images without the field show as "unknown". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S2yuRD9F9c4T7rkGwPJxRm
Workers XDEL a stream entry only after finishing it, so XLEN includes
tasks a consumer has already read and is working on. The card's Backlog
was raw XLEN, so a single running task showed as Running 1 / Backlog 1.
Backlog is now XLEN minus the group's pending entries (clamped at 0).
Utilization and the recorded history series still use XLEN (total load),
so the utilization bar, History chart ("Queue backlog (XLEN)") and
heatmap keep their meaning. The detail popup's "Queue length" label is
renamed "Backlog" to match the card.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S2yuRD9F9c4T7rkGwPJxRm
Codecov Report❌ Patch coverage is
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
maximusunc
pushed a commit
that referenced
this pull request
Nov 1, 2026
Worker image versions on the monitor dashboard (SHEPHERD_VERSION build arg, kept alongside this branch's latest-trapi-1.6 tags) and workers naming the HTTP code and description their query fails with. The ARAX route keeps attaching the logs to the response, as 1.6 does, and passes the failure description through; the lost-response test drops its 2.0 Response check. Version stays 1.3.4 (untagged). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TtsBikU9y9AFQ5uu9tcioz
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.
Summary
Two monitor dashboard improvements.
1. Image version on worker cards
SHEPHERD_VERSIONbuild arg. All worker Dockerfiles andshepherd_server/Dockerfiledeclare it, and local builds default todev. A deployment can also override it through the environment.version. The monitor carries it per replica and lists the distinct versions for each worker type.Mixed: v2.7.0 ×1, v2.8.1 ×2.unknownuntil the next release.2. Backlog no longer counts running tasks
Workers
XDELa stream entry only after finishing it, soXLENincludes tasks already being worked on. The card's Backlog was rawXLEN, so a single running query showed as Running 1 / Backlog 1. Backlog is nowXLEN − pending, clamped at 0.The utilization bar and the recorded
backlog:*history series still useXLEN(total load). This keeps the History page's "Queue backlog (XLEN)" chart and its utilization heatmap unchanged. The popup's "Queue length" label is renamed "Backlog" to match the card.Testing
tests/unit/test_worker_lifecycle.pypass (104 tests).Generated by Claude Code