Repository navigation
Conversation
`mayfly status` took about 52 s on a 16-slot host: each slot ran `qm status` and `qm config` (each starts the Proxmox Perl CLI), `systemctl is-active`, and `qm guest exec` (up to 15 s) for the JOB column. The guest state now comes from the qemu pid file or lxc-info, the runner name from the `#` description lines of the guest's config file, every slot's service from one `systemctl is-active` call, and JOB from GitHub's busy flag. The guest is asked only when GitHub does not know the runner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GGBbe8FgqqUCF5fNkd9Ndi
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.
mayfly statustook about 52 s on a 16-slot host. Each slot ranqm statusandqm config(each starts the Proxmox Perl CLI, about 1 s),systemctl is-active, andqm guest execfor the JOB column (up to 15 s when the agent is slow).Now:
lxc-info(containers), as the slot loop already does. It showsrunningorstopped./etc/pve/qemu-server/<id>.conf, the percent-encoded#lines at the top) instead ofqm config.systemctl is-activecall for all slots.busyoronline). The guest is asked only when the runner is offline or unknown, or GitHub can't be reached.Output format is unchanged. Tests cover the description parser and check that status makes no
qm status/qm configcalls and onesystemctlcall.Tested: cargo fmt, clippy, cargo test.
Notes:
mayfly statusis fast on hosts with many slots.Generated by Claude Code