Skip to content

fix: report an app as running only when a container is actually running - #38

Merged
SamsonNegedu merged 2 commits into
mainfrom
fix/app-status-running-check
Nov 18, 2026
Merged

SamsonNegedu merged 2 commits into
mainfrom
fix/app-status-running-check

Conversation

@SamsonNegedu

Copy link
Copy Markdown
Owner

Problem

After a failed update, the app kept showing Running even with no containers. `GetAppStatus` treated any `docker compose ps` output as running, but `ps` always prints a header row.

Fix

Use `docker compose ps -q --status running`. Any container ID means running; empty means stopped.

Tests

Updated `TestGetAppStatus` and `TestGetAppStatusEmpty` for the new command. Both failed before the fix.

🤖 Generated with Claude Code

SamsonNegedu and others added 2 commits November 18, 2026 23:06
GetAppStatus treated any docker compose ps output as running, but ps always
prints a header row. Use ps -q --status running so an empty result means stopped.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ovulncheck

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@SamsonNegedu
SamsonNegedu merged commit 8ad69e5 into main Nov 18, 2026
11 checks passed
@SamsonNegedu
SamsonNegedu deleted the fix/app-status-running-check branch November 18, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant