aj-geddes avatar

Batch Processing Jobs

This is your go-to for building job queues and background workers when you need to process things outside the request cycle. It covers Bull queues for Node.js, Celery-style workers for Python, and cron schedulers for recurring tasks. The best practices are solid: idempotency, exponential backoff, dead letter queues, and proper monitoring. It's opinionated about keeping large payloads out of your queue and always implementing timeouts. If you're sending bulk emails, processing uploads, running ETL pipelines, or doing anything that takes more than a few seconds, this gives you the patterns to do it right without reinventing retry logic for the hundredth time.

skills.sh installs
479
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill batch-processing-jobs --agent claude-code

Installs into .claude/skills of the current project.

Files

Batch Processing Jobs

Table of Contents

Overview

Implement scalable batch processing systems for handling large-scale data processing, scheduled tasks, and async operations efficiently.

When to Use

  • Processing large datasets
  • Scheduled report generation
  • Email/notification campaigns
  • Data imports and exports
  • Image/video processing
  • ETL pipelines
  • Cleanup and maintenance tasks
  • Long-running computations
  • Bulk data updates

Quick Start

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>;

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
AI & Agent Building, Automation & Workflows
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1jwynia avatarflash-fictionjwynia/agent-skillsDiagnose and fix problems in flash fiction and micro fiction. Use when flash fiction feels weak, when writing stories under 1500 words, when working with micro 479skills.sh installs
2jwynia avatarrevisionjwynia/agent-skillsGuide the edit pass after drafting. Use when revision feels overwhelming, when changes cascade unpredictably, when you can't see problems anymore, or when editi479skills.sh installs
3aj-geddes avataraws-cloudfront-cdnaj-geddes/useful-ai-promptsDistribute content globally using CloudFront with caching, security headers, WAF integration, and origin configuration. Use for low-latency content delivery.478skills.sh installs
4aj-geddes avatarmutation-testingaj-geddes/useful-ai-promptsEvaluate test suite quality by introducing code mutations and verifying tests catch them. Use for mutation testing, test quality, mutant detection, Stryker, PIT478skills.sh installs
5rstackjs avatarrsdoctor-analysisrstackjs/agent-skillsUse when analyzing Rspack/Webpack bundles from local `rsdoctor-data.json` and producing evidence-based optimization recommendations.478skills.sh installs
6aj-geddes avatarapi-changelog-versioningaj-geddes/useful-ai-promptsDocument API changes, breaking changes, migration guides, and version history for APIs. Use when documenting API versioning, breaking changes, or creating API m477skills.sh installs