Skip to content

Conversation

@nijel
Copy link
Member

@nijel nijel commented Dec 21, 2025

The supervisorctl status is actually exit with 3, so handle this gracefully.

Fixes #3997
Replaces #3996

The supervisorctl status is actually exit with 3, so handle this
gracefully.

Fixes WeblateOrg#3997
Replaces WeblateOrg#3996
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the health check script to properly handle supervisorctl exit codes. Previously, the script would fail when supervisorctl returned exit code 3, which happens when one or more supervised processes are not running (specifically, the "check" service which is designed to exit after completion).

Key changes:

  • Removed set -e to allow explicit exit code handling
  • Added logic to capture and validate supervisorctl exit codes, accepting both 0 (success) and 3 (expected for stopped "check" service)
  • Improved error reporting to show the actual exit code when supervisorctl fails

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nijel nijel merged commit 7469d5f into WeblateOrg:main Dec 21, 2025
51 checks passed
@nijel nijel deleted the health-check branch December 21, 2025 18:49
@nijel nijel self-assigned this Dec 21, 2025
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.

Container marked unhealthy when check finishes successfully

2 participants