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.

rules_sections.md

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

Sections

This file defines all sections, their ordering, impact levels, and descriptions. The section ID (in parentheses) is the filename prefix used to group rules.


1. Driver & Config (config)

Impact: CRITICAL Description: The choices made in config/queue.php shape every downstream concern. Wrong driver at scale (database when redis is needed) becomes the bottleneck; wrong after_commit setting causes jobs to fail mysteriously when they reference uncommitted rows; missing failed-jobs storage means failures are silently lost.

2. Job Design (design)

Impact: CRITICAL Description: The shape of the job class itself — does it implement ShouldQueue, does it pass IDs or models, is it idempotent, is the constructor pure? Get this wrong and the job either doesn't queue at all, fails on retry, or duplicates side effects under load.

3. Retry & Failure (retry)

Impact: HIGH Description: Every job will eventually fail. Configuring $tries and $backoff, implementing failed(), distinguishing transient from permanent errors, and avoiding the "burn all 5 attempts on a hung HTTP call" trap (#[FailOnTimeout]) decide whether failures become noise or pages.

4. Scaling & Workers (scaling)

Impact: HIGH Description: Worker process management — Supervisor or systemd config, queue priority lanes, recycling workers to combat PHP memory leaks. The same job code can be fast or impossibly slow depending on how the workers are tuned around it.

5. Batching & Chaining (bus)

Impact: HIGH Description: When you need to dispatch many related jobs — choosing Bus::batch (parallel, progress tracking, then/catch/finally) vs Bus::chain (strict sequential, abort on failure), how to handle partial failures with allowFailures(), and how to chunk thousands of items without overwhelming the queue.

6. Testing & Operations (ops)

Impact: MEDIUM Description: Asserting queue behaviour in tests (Queue::fake, Bus::fake), wiring queueable jobs into the scheduler with overlap prevention, and the recurring question of when Horizon's complexity earns its keep over plain queue:work.

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