/superpowers-laravel:laravel:queues-and-horizonfrom superpowers-laravel
Operates and verifies Laravel queues with or without Horizon, covering safe worker flags, failure handling, and test strategies.
Ships in superpowers-laravel. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run workers safely, verify execution, and test job behavior.
# Start worker
sail artisan queue:work --queue=high,default --tries=3 --backoff=5 # or: php artisan queue:work --queue=high,default --tries=3 --backoff=5
# Horizon (if installed)
sail artisan horizon # or: php artisan horizon
# Failed jobs
sail artisan queue:failed # or: php artisan queue:failed
sail artisan queue:retry all # or: php artisan queue:retry all
Log::warning/::error with context in jobs# Centralized queue routing (e.g., in AppServiceProvider)
Queue::route(ProcessPodcast::class, connection: 'redis', queue: 'podcasts');
# Declarative job controls via attributes
use Illuminate\Queue\Attributes\{Tries, Backoff, Timeout, FailOnTimeout};
#[Tries(3)]
#[Backoff([10, 30, 60])]
#[Timeout(120)]
#[FailOnTimeout]
class ProcessPodcast implements ShouldQueue { /* ... */ }
# Graceful shutdown for long-running jobs
class ProcessPodcast implements ShouldQueue, Interruptible {
public function onInterrupt(): void { /* release locks, save state */ }
}
# Auto-scaling friendly worker exit
sail artisan queue:work --stop-when-empty-for=60 # or: php artisan queue:work --stop-when-empty-for=60
Queue::route() over per-dispatch onQueue() when routing is a policy, not a caller decisionlaravel:php-attributes for the attribute-first style trade-offsBus::fake() to assert dispatching in unit testsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
laravel-queues, horizon, queue-worker, job-testing, laravel-13
57 skills in this plugin
/laravel:ai-sdkBuild AI features with the first-party Laravel AI SDK (Laravel 13+); agents, embeddings, images, audio, and tool calling with provider-agnostic APIs/laravel:api-resources-and-paginationUse API Resources with pagination and conditional fields; keep response shapes stable and cache-friendly/laravel:api-surface-evolutionEvolve APIs safely using versioned DTOs/transformers, deprecations, and compatibility testsnpx claudepluginhub jpcaparas/superpowers-laravel --plugin superpowers-laravelOther plugins' skills for the same job