rails-jobs

Active Job design, _later/_now conventions, Solid Queue, recurring tasks, retry policy

On demand · raw .md · GitHub

Install

npx skills add marckohlbrugge/skills --skill rails-jobs

Or tell your agent:

Install the skill at https://marc.md/rails-jobs.md

Or by hand, for Claude Code:

mkdir -p ~/.claude/skills/rails-jobs && curl -fsSL https://marc.md/rails-jobs.md -o ~/.claude/skills/rails-jobs/SKILL.md

Rails Jobs

Use for background job design and review. Patterns from Campfire (Resque, 4 thin jobs) and Fizzy (Solid Queue, multi-queue).

Defaults

Naming Convention

def notify_recipients          # the work — public API the job calls
def notify_recipients_later   # enqueues NotifyRecipientsJob (often private, called from callbacks)

Good Patterns

Recurring & Maintenance

Error Handling Policy

Testing

Red Flags