thm-health/pilos/configuring-horizon
Claude Code and agent skill by thm-health/pilos
- community
Checking that the SKILL.md file is still in the repository.
Use this skill whenever the user mentions Horizon by name in a Laravel context. Covers the full Horizon lifecycle: installing Horizon (horizon:install, Sail setup), configuring config/horizon.php (supervisor blocks, queue assignments, balancing strategies, minProcesses/maxProcesses), fixing the dashboard (authorization via Gate::define viewHorizon, blank metrics, horizon:snapshot scheduling), and troubleshooting production issues (worker crashes, timeout chain ordering, LongWaitDetected notifications, waits config). Also covers job tagging and silencing. Do not use for generic Laravel queues without Horizon, SQS or database drivers, standalone Redis setup, Linux supervisord, Telescope, or job batching.
Install
npx vskill@latest install thm-health/pilos/configuring-horizonSKILL.md
Horizon Configuration
Documentation
Use search-docs for detailed Horizon patterns and documentation covering configuration, supervisors, balancing, dashboard authorization, tags, notifications, metrics, and deployment.
For deeper guidance on specific topics, read the relevant reference file before implementing:
references/supervisors.mdcovers supervisor blocks, balancing strategies, multi-queue setups, and auto-scalingreferences/notifications.mdcovers LongWaitDetected alerts, notification routing, and thewaitsconfigreferences/tags.mdcovers job tagging, dashboard filtering, and silencing noisy jobsreferences/metrics.mdcovers the blank metrics dashboard, snapshot scheduling, and retention config
Basic Usage
Installation
Supervisor Configuration
Define supervisors in config/horizon.php. The environments array merges into defaults and does not replace the whole supervisor block:
<!-- Supervisor Config -->
Dashboard Authorization
Restrict access in App\Providers\HorizonServiceProvider:
<!-- Dashboard Gate -->
Verification
- Run
vendor/bin/sail artisan horizonand visit/horizon - Confirm dashboard access is restricted as expected
- Check that metrics populate after scheduling
horizon:snapshot
Common Pitfalls
- Horizon only works with the Redis queue driver. Other drivers such as database and SQS are not supported.
- Redis Cluster is not supported. Horizon requires a standalone Redis connection.
- Always check
config/horizon.phpbefore making changes to understand the current supervisor and environment configuration. - The
environmentsarray overrides only the keys you specify. It merges intodefaultsand does not replace it. - The timeout chain must be ordered: job
timeoutless than supervisortimeoutless thanretry_after. The wrong order can cause jobs to be retried before Horizon finishes timing them out. - The metrics dashboard stays blank until
horizon:snapshotis scheduled. Runningvendor/bin/sail artisan horizonalone does not populate metrics. - Always use
search-docsfor the latest Horizon documentation rather than relying on this skill alone.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/configuring-horizon/SKILL.md
Popularity
- Repository stars
- 65
- Repository forks
- 30
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/thm-health/pilos/configuring-horizon)