stacks-queue

Orchestrate background jobs and queues across Redis, database, and in-memory drivers.

622|17|Updated Apr 26, 2022
One-click install
npx skills add https://github.com/stacksjs/stacks --skill stacks-queue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stacks-queue
Source: https://github.com/stacksjs/stacks/tree/main/.claude/skills/stacks-queue
Command: npx skills add https://github.com/stacksjs/stacks --skill stacks-queue

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates and coordinates background job processing inside Stacks applications, enabling reliable dispatch, scheduling, workers, and monitoring.

Core Features & Use Cases

  • Dispatch and execute jobs across multiple drivers (sync, database, Redis) with retries and backoff
  • Support for batching, scheduling, and job events to track progress
  • Observability through health checks, notifications, and metrics to ensure reliability
  • Testing utilities and job discovery for app/Jobs modules

Quick Start

Create and dispatch a sample job to the default queue to observe immediate processing.

Frequently Asked Questions about stacks-queue

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I dispatch and run background jobs in a Stacks application?

To dispatch background jobs in a Stacks application, you can create and schedule jobs to process immediately or later. The system orchestrates execution across workers using sync, database, or Redis drivers, including retries and backoff support.

What is the best way to monitor queued jobs and worker health?

Monitoring queued jobs and worker health is handled through built-in observability features. The queue system provides health checks, metrics, and event hooks to track job progress and ensure reliable background processing across your application.

Can I use Redis and database drivers for queueing jobs simultaneously?

Yes, you can use Redis and database drivers for queueing jobs simultaneously. The multi-driver architecture supports sync, database, and Redis configurations, allowing you to dispatch and execute jobs across different storage backends within the same application.

How do I test background jobs and queued tasks during development?

Testing background jobs during development is supported through dedicated testing utilities. You can dispatch sample jobs to the default queue, observe immediate processing, and verify execution behavior using the provided job discovery and testing tools.

Does the queue system support job batching and scheduled execution?

Yes, the queue system supports job batching and scheduled execution. You can group jobs into batches to track collective progress, schedule jobs for deferred processing, and utilize event hooks to monitor completion across your selected queue drivers.

Why do I need a queue worker for background job processing?

A queue worker is needed for background job processing to automate and coordinate asynchronous tasks outside the main application flow. Workers execute dispatched jobs, handle retries with backoff, and ensure reliable processing without blocking user-facing operations.