Skip to content
Back to skills

Background Jobs

ASecurity

Comprehensive guidance for background processing in the Mossback platform. Covers jobs, workers, queues, schedules, cron expressions, retries, backoff, dead letters, idempotency, concurrency limits, timeouts, job payloads, job priorities, long-running tasks, batch processing, and fan-out. Also covers how a job is defined, how it is enqueued from a request handler, how it is registered with the scheduler, how failures are surfaced, and how to replay a failed job safely. Helps with adding a new...

  • 198 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 12, 2026
ai-agentsexpressdebuggingdatabase

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add mblode/agent-skills --skill background-jobs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Background Jobs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Background Jobs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mblode-background-jobs/badge)](https://www.skillsdirectory.com/skills/mblode-background-jobs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: background-jobs
description: Comprehensive guidance for background processing in the Mossback platform. Covers jobs, workers, queues, schedules, cron expressions, retries, backoff, dead letters, idempotency, concurrency limits, timeouts, job payloads, job priorities, long-running tasks, batch processing, and fan-out. Also covers how a job is defined, how it is enqueued from a request handler, how it is registered with the scheduler, how failures are surfaced, and how to replay a failed job safely. Helps with adding a new job, debugging a stuck queue, making a job safe to run twice, and moving slow work out of a request. Use when the user mentions a job, a worker, a queue, a schedule, cron, a retry, async work, a background task, a batch, or anything that should happen later or on a timer. Always follows the Mossback platform conventions, house style, and established best practices.
---

# Background Jobs

## Rules

- Jobs live in `src/jobs/<name>.ts` and are registered in `src/jobs/index.ts`.
- The queue delivers at least once. Every job is safe to run twice.
- Enqueue after the database transaction commits, never inside it.
- Replay a dead job with `pnpm jobs:replay <id>`; it refuses jobs older than seven days.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.