Skip to content
Back to skills

Queues And Horizon

ASecurity

Operate and verify queues with or without Horizon; safe worker flags, failure handling, and test strategies

  • 147 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 6, 2026
testingphptesting

Security analysis

A100/100

Scanned June 6, 2026

npx -y skills add jpcaparas/superpowers-laravel --skill queues-and-horizon --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Queues And Horizon?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Queues And Horizon
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jpcaparas-queues-and-horizon/badge)](https://www.skillsdirectory.com/skills/jpcaparas-queues-and-horizon)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: laravel:queues-and-horizon
description: Operate and verify queues with or without Horizon; safe worker flags, failure handling, and test strategies
---

# 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)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.