Skip to content

Register queue health monitoring - #2531

Open
LegacyAngel2K9 wants to merge 2 commits into
pelican:mainfrom
LegacyAngel2K9:angel-feature-lance-part1
Open

Register queue health monitoring#2531
LegacyAngel2K9 wants to merge 2 commits into
pelican:mainfrom
LegacyAngel2K9:angel-feature-lance-part1

Conversation

@LegacyAngel2K9

Copy link
Copy Markdown

Summary

  • register Spatie Health's QueueCheck with a five-minute failure threshold
  • dispatch the queue-check heartbeat command every minute

Why

Pelican already uses Spatie Health for application monitoring, but the queue worker check was not registered or scheduled. This adds the smallest complete integration so stalled queue processing is visible through the existing health system.

This is part (b) of the work split out from #2529 following maintainer review.

Validation

  • vendor/bin/pint --test app/Console/Kernel.php app/Providers/AppServiceProvider.php
  • vendor/bin/phpstan analyse --no-progress app/Console/Kernel.php app/Providers/AppServiceProvider.php
  • confirmed health:queue-check-heartbeat is registered by Artisan
  • confirmed the heartbeat command appears in php artisan schedule:list every minute

@coderabbitai

coderabbitai Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f750e8ff-6e50-4ec2-8cb3-430f2fc9462a

📥 Commits

Reviewing files that changed from the base of the PR and between cb325f2 and 772448b.

📒 Files selected for processing (1)
  • app/Providers/AppServiceProvider.php

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The application registers Spatie’s queue health check without the previous five-minute failure threshold and schedules DispatchQueueCheckJobsCommand to run every minute.

Changes

Queue health monitoring

Layer / File(s) Summary
Queue health check registration
app/Providers/AppServiceProvider.php
The health-check configuration registers QueueCheck without a five-minute failure threshold.
Queue check job scheduling
app/Console/Kernel.php
The scheduler imports and runs DispatchQueueCheckJobsCommand every minute.

Possibly related PRs

  • pelican/panel#2529: Both PRs modify the scheduler and application health-check configuration for queue monitoring.

Merge Risk: ⚪ Minimal · up to 77244

This localized change registers and schedules queue health monitoring; no actionable merge-blocking risk remains beyond normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: registering queue health monitoring.
Description check ✅ Passed The description directly explains queue health registration, heartbeat scheduling, rationale, and validation.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@LegacyAngel2K9
LegacyAngel2K9 marked this pull request as ready for review August 18, 2026 22:30
Comment thread app/Providers/AppServiceProvider.php Outdated
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
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.

2 participants