laravel:queues-and-horizon

Run workers safely, verify execution, and test job behavior.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "laravel:queues-and-horizon" with this command: npx skills add jpcaparas/superpowers-laravel/jpcaparas-superpowers-laravel-laravel-queues-and-horizon

Queues and Horizon

Run workers safely, verify execution, and test job behavior.

Commands

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

Patterns

  • Use named queues for prioritization; keep defaults sane

  • Add actionable Log::warning /::error with context in jobs

  • Idempotency: make jobs safe to retry

  • Emit metrics where possible; observe in Horizon or your APM

Testing Jobs

  • Use Bus::fake() to assert dispatching in unit tests

  • Use integration tests to verify side-effects (DB/IO)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

laravel:routes-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:blade-components-and-layouts

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:quality-checks

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:tdd-with-pest

No summary provided by upstream source.

Repository SourceNeeds Review