All skills
asyrafhussin avatar

/laravel-queues

@2631530

Laravel 13 queue and job patterns — driver choice, job design (idempotency, ShouldQueue, model serialisation), retry and failure handling, worker scaling, Bus batching and chaining, Horizon when warranted, queue testing. Use when designing async jobs, scheduling background work, configuring Horizon, debugging stuck jobs, or auditing queue health. Triggers on "Laravel queue", "Laravel job", "background job", "Horizon setup", "failed jobs", "Bus batch", "queue worker tuning".

Use this Skill: https://skilld.dev/gh/asyrafhussin/agent-skills/laravel-queues

This session only. Nothing lands on disk.

README.md

≈496 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Laravel Queues & Jobs

Production-grade queue patterns for Laravel 13 (MySQL + Redis). Covers driver choice, job design, retry/failure, worker scaling, batching/chaining, and testing. 20 rules across 6 categories.

Version: 1.0.0

Overview

  • Driver choice: when database is enough, when to move to redis
  • Job design: ShouldQueue, IDs-not-models, idempotency, constructor vs handle()
  • Retry & failure: #[Backoff], #[FailOnTimeout], failed(), transient vs permanent
  • Scaling: Supervisor config, multi-queue priority lanes, worker recycling
  • Batching & chaining: Bus::batch vs Bus::chain, failure handling, chunking
  • Testing & ops: Queue::fake(), Bus::fake(), scheduling, when to adopt Horizon

Categories

1. Driver & Config (CRITICAL)

Driver choice (database/redis/sqs), after_commit, failed-jobs storage.

2. Job Design (CRITICAL)

ShouldQueue, pass IDs not models, idempotency on payment/external-API jobs, constructor vs handle.

3. Retry & Failure (HIGH)

Tries + backoff (incl. #[Backoff] attribute), failed() method, transient vs permanent, #[FailOnTimeout].

4. Scaling & Workers (HIGH)

Supervisor config, multi-queue priority, worker recycling to avoid memory leaks.

5. Batching & Chaining (HIGH)

Bus::batch vs Bus::chain, failure handling with allowFailures(), chunking large sets.

6. Testing & Operations (MEDIUM)

Queue::fake(), scheduled jobs with withoutOverlapping, when Horizon is warranted.

Usage

Audit our queue setup
Review this job class
Should this be queued or run sync?
Why is this job retrying forever?
Set up Supervisor for queue workers
When should we adopt Horizon?

References

Source: SKILL.md on GitHub

No alerts16d3 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The analyzed skill contains high-quality reference guidelines and checklists for configuring and auditing Laravel 13 queue structures and background jobs. No security risks, malicious patterns, or vulnerabilities were identified.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

Signed by skilld at 2631530. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 5 months ago
metadata
{
  "author": "agent-skills",
  "version": "1.0.0"
}

README badge

README badge for asyrafhussin/agent-skills/laravel-queues