Background jobs

From rnavarych/alpha-engineer · View interactive version

Background jobs is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Implements background job processing using Bull/BullMQ (Node.js), Celery (Python), Sidekiq (Ruby), and cron scheduling. Covers job prioritization, retry strategies (exponential backoff), dead letter handling, job monitoring, rate-limited queues, and graceful shutdown. Use when offloading work from r

How to use this skill

Skill file

Background Jobs

When to use

Core principles

  1. Idempotency is non-negotiable — every job runs safely multiple times; design for retries from day one
  2. Pass IDs, not data — fetch fresh state inside the job; stale payloads cause subtle bugs
  3. Retries are tiered by criticality — payment jobs retry 5 times over an hour; analytics sync retries 3 times over 15 minutes
  4. DLQ depth is an alert, not a log — non-zero means someone needs to look at it now
  5. Graceful shutdown beats a kill -9 — always drain in-flight jobs before the process exits

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.