python-background-jobs

Installation
Summary

Async task processing patterns for decoupling long-running work from request/response cycles.

  • Covers core patterns including immediate job ID returns, task queue configuration with Celery, idempotency strategies, and job state management for visibility
  • Includes advanced workflows: dead letter queues for failed tasks, status polling endpoints, task chaining, and parallel execution
  • Provides examples for Celery, RQ, and Dramatiq, plus guidance on cloud-native alternatives like AWS SQS and Google Cloud Tasks
  • Emphasizes idempotency through check-before-write, idempotency keys, and deduplication windows to handle at-least-once delivery safely
SKILL.md

Python Background Jobs & Task Queues

Decouple long-running or unreliable work from request/response cycles. Return immediately to the user while background workers handle the heavy lifting asynchronously.

When to Use This Skill

  • Processing tasks that take longer than a few seconds
  • Sending emails, notifications, or webhooks
  • Generating reports or exporting data
  • Processing uploads or media transformations
  • Integrating with unreliable external services
  • Building event-driven architectures

Core Concepts

1. Task Queue Pattern

API accepts request, enqueues a job, returns immediately with a job ID. Workers process jobs asynchronously.

Related skills

More from wshobson/agents

Installs
6.0K
Repository
wshobson/agents
GitHub Stars
35.3K
First Seen
Jan 30, 2026