-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heathcheck return code #5421
base: next
Are you sure you want to change the base?
Heathcheck return code #5421
Conversation
@coderabbitai review |
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe ApplicationDeploymentJob now builds the health check URL dynamically from scheme, host, port, and path retrieved from configuration. It logs the health check URL along with the expected return code, and refactors the command generation to use both Changes
Sequence Diagram(s)sequenceDiagram
participant AD as ApplicationDeploymentJob
participant Config as Configuration
participant Log as Logger
participant Shell as Command Executor
AD->>Config: Retrieve scheme, host, port, path, and expected return code
Config-->>AD: Return health check parameters
AD->>AD: Build health check URL from components
AD->>Log: Log health check URL with expected return code
AD->>Shell: Execute curl command for health check
AD->>Shell: Execute wget command with --spider option for health check
Shell-->>AD: Return status of commands
AD->>Log: Log error and terminate if health check fails
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
app/Jobs/ApplicationDeploymentJob.php
(2 hunks)
🔇 Additional comments (1)
app/Jobs/ApplicationDeploymentJob.php (1)
1215-1215
: I'll be back... with better health check logs!Added the expected return code to health check logs. This enhances debugging by showing what HTTP status code is expected from the health check. Humans are weak, but their logs should be strong!
Start using healthcheck return code. Related issue: #2218
fix #2218