Skip to content
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

Add pause and resume commands for health checks #255

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

faustoFF
Copy link
Contributor

@faustoFF faustoFF commented Jan 2, 2025

Description

This pull request adds the ability to temporarily pause and resume health checks during deployment or other maintenance activities. This feature helps prevent unnecessary error notifications while deployments are in progress.

Motivation

During deployments, health checks may trigger false alarms due to temporary downtime or service unavailability. By pausing these checks, we can avoid receiving irrelevant alerts and focus on the deployment process itself.

Usage

# will pause health checks for default 300 seconds
php artisan health:pause

# will pause health checks for 60 seconds
php artisan health:pause 60

# will resume health checks immediately
php artisan health:resume

@freekmurze
Copy link
Member

Very nice, could you also add docs for this?

@faustoFF
Copy link
Contributor Author

faustoFF commented Jan 6, 2025

@freekmurze done!

@Pes8
Copy link
Contributor

Pes8 commented Jan 12, 2025

yes please 🙏

@freekmurze freekmurze merged commit be253b0 into spatie:main Jan 13, 2025
4 checks passed
@freekmurze
Copy link
Member

Very nice thanks!

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.

3 participants