What is laravel-horizon?
Use when working with Laravel queues in production — Horizon dashboard, worker supervision, job metrics, balancing strategies — even when the user just says 'my jobs are piling up'.
event4u-app/agent-config
Use when working with Laravel queues in production — Horizon dashboard, worker supervision, job metrics, balancing strategies — even when the user just says 'my jobs are piling up'.
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/laravel-horizon"Quick start
Install it or open the source, trigger it with a clear task, then follow the source workflow.
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/laravel-horizon"Use laravel-horizon to help me with: [describe your task]. Before you begin, tell me what input you need, the steps you will follow, and the expected output.
No structured workflow was detected; follow the original SKILL.md below.
Continue to the workflowDirect answers
Use when working with Laravel queues in production — Horizon dashboard, worker supervision, job metrics, balancing strategies — even when the user just says 'my jobs are piling up'.
It is relevant to workflows involving Deployment, Engineering.
SkillSignal detected this source-specific command: npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/laravel-horizon". Inspect the repository and command before running it.
The upstream source does not declare a dedicated Agent platform.
No obvious permission action was detected by the static rules. This is not proof that the Skill is safe.
This page combines upstream documentation with deterministic repository, quality, and static-risk signals. It is not described as a manual test or security review.
SkillSignal brief
Use when working with Laravel queues in production — Horizon dashboard, worker supervision, job metrics, balancing strategies — even when the user just says 'my jobs are piling up'.
Useful in these contexts
Core capabilities
Distilled from the source
About 2 min · 13 sections
Queue worker configuration and supervision
Horizon dashboard setup and access control
Job metrics, throughput, and failure monitoring
Balancing strategies and scaling workers
Updated Horizon configuration with supervisor and queue settings
Environment-specific balancing strategy rationale
Quality breakdown
Based on traceable docs and repository signals; stars are not treated as quality.
Compare before choosing
These links are selected from shared tasks, functions, stacks, platforms, and same-name variants. Compare the source owner, documentation, permissions, and maintenance signals.
Production machine-learning engineering workflow for data contracts, reproducible training, model evaluation, deployment, monitoring, and rollback. Use when building, reviewing, or hardening ML systems beyond one-off notebooks.
Build, inspect, test, and analyze bounded process-based discrete-event simulations with SimPy, including events, resources, interrupts, monitoring, replications, warm-up, and reproducible output analysis.
Give a blunt A-F ship grade for a code change across correctness, security, data, UX, verification, and deploy readiness. Use for a grade, not a findings review.
Use when working with Terragrunt — DRY multi-env configs, module dependencies, remote state orchestration — even when the user just says 'deploy this to staging and prod' without naming Terragrunt.
Kubernetes workload patterns, resource management, RBAC, probes, autoscaling, ConfigMap/Secret handling, and kubectl debugging for production-grade deployments.
Use this skill for anything related to Laravel Horizon:
For writing queue jobs themselves, see jobs-events.
config/queue.php, config/horizon.php (if present), and composer.json to identify the current driver, supervisors, and queues in use.maxProcesses, balance, tries, timeout based on workload; review the config block below.config/horizon.php, register supervisors and queue priority.php artisan horizon locally, hit /horizon dashboard, confirm jobs flow and metrics appear.'environments' => [
'production' => [
'supervisor-1' => [
'maxProcesses' => 10,
'balanceMaxShift' => 1,
'balanceCooldown' => 3,
'connection' => 'redis',
'queue' => ['default', 'high', 'low'],
'balance' => 'auto', // auto, simple, or false
'tries' => 3,
'timeout' => 60,
'maxTime' => 3600,
'maxJobs' => 1000,
'memory' => 128,
],
],
'local' => [
'supervisor-1' => [
'maxProcesses' => 3,
'connection' => 'redis',
'queue' => ['default', 'high', 'low'],
'balance' => 'auto',
'tries' => 3,
'timeout' => 60,
],
],
],
// Higher priority queues are listed first
'queue' => ['high', 'default', 'low'],
# Start Horizon (foreground)
php artisan horizon
# Pause / Continue
php artisan horizon:pause
php artisan horizon:continue
# Terminate gracefully (for deployments)
php artisan horizon:terminate
# Check status
php artisan horizon:status
Always terminate and restart Horizon after deploying new code:
php artisan horizon:terminate
# Supervisor will auto-restart Horizon
[program:horizon]
process_name=%(program_name)s
command=php /path/to/artisan horizon
autostart=true
autorestart=true
user=www-data
redirect_stderr=true
stdout_logfile=/var/log/horizon.log
stopwaitsecs=3600
// HorizonServiceProvider
protected function gate(): void
{
Gate::define('viewHorizon', function (User $user): bool {
return $user->isSuperuser();
});
}
| Strategy | Behavior |
|---|---|
auto | Distributes workers based on queue workload (recommended) |
simple | Round-robin across queues |
false | Fixed worker count per queue |
tags() method// Custom tags on a job
public function tags(): array
{
return ['customer:' . $this->customer->getId(), 'report'];
}
horizon:terminate ensures workers pick up new code.auto balancing — it adapts to workload automatically.maxTime — prevents workers from running forever (memory leaks).maxJobs — recycles workers after N jobs to prevent memory bloat.php artisan horizon:terminate and restart — they don't hot-reload.maxProcesses too high — each process holds a DB connection. Monitor your connection pool.