From aj-geddes-useful-ai-prompts-4
Implements batch processing systems with job queues, schedulers, and distributed workers. Use for large datasets, scheduled tasks, or async operations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aj-geddes-useful-ai-prompts-4:batch-processing-jobsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Overview](#overview)
Implement scalable batch processing systems for handling large-scale data processing, scheduled tasks, and async operations efficiently.
Minimal working example:
import Queue from "bull";
import { v4 as uuidv4 } from "uuid";
interface JobData {
id: string;
type: string;
payload: any;
userId?: string;
metadata?: Record<string, any>;
}
interface JobResult {
success: boolean;
data?: any;
error?: string;
processedAt: number;
duration: number;
}
class BatchProcessor {
private queue: Queue.Queue<JobData>;
private resultQueue: Queue.Queue<JobResult>;
constructor(redisUrl: string) {
// Main processing queue
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Bull Queue (Node.js) | Bull Queue (Node.js) |
| Celery-Style Worker (Python) | Celery-Style Worker (Python) |
| Cron Job Scheduler | Cron Job Scheduler |
npx claudepluginhub aj-geddes/useful-ai-promptsBuilds background job processing systems with task queues, workers, scheduling, and retry mechanisms. Use for long-running tasks, async email sending, report generation, and large dataset processing.
Implements background job processing with Bull/BullMQ (Node.js), Celery (Python), Sidekiq (Ruby), and cron. Covers prioritization, retries, dead letter queues, monitoring, rate limits, and shutdown for offloading tasks and pipelines.
Python background job patterns including task queues, workers, and event-driven architecture. Use for async job processing and decoupling work from request/response cycles.