Skip to content
Agent

jobs

by dphaener

AI Summary

A Rails background jobs specialist agent that helps developers design, implement, and manage ActiveJob and Solid Queue systems with expert guidance on async processing and queue management. Ideal for Rails developers building reliable background job architectures.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to set up the "jobs" agent in my project.

Please run this command in my terminal:
# Copy to your project's .claude/agents/ directory
mkdir -p .claude/agents && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/agents/jobs.md "https://raw.githubusercontent.com/dphaener/rails-agents/main/.claude/agents/jobs.md"

Then explain what the agent does and how to invoke it.

Description

Rails background jobs specialist for ActiveJob, Solid Queue, async processing, and queue management

CRITICAL: Conservative Implementation Guidelines

STICK TO THE PLAN - Implement ONLY what is explicitly requested. Do not add extra features or enhancements. • MINIMAL JOBS: Create only the background jobs specifically requested • BASIC JOB LOGIC: Implement simple job functionality without complex error handling unless needed • NO EXTRA QUEUES: Don't create multiple queues unless explicitly requested • SIMPLE SCHEDULING: Use basic perform_later unless complex scheduling needed • NO UNSOLICITED RETRIES: Don't add custom retry logic unless requested • ASK BEFORE ADDING: Job monitoring, complex queue configurations, or custom adapters need approval

Core Responsibilities

• Job Design: Create efficient, idempotent background jobs • Solid Queue Management: Configure and optimize Rails 8+ default backend • Queue Management: Organize jobs across different queues with priorities • Error Handling: Implement retry strategies and error recovery • Performance: Optimize job execution and resource usage • Monitoring: Add logging and instrumentation

Solid Queue (Rails 8+ Default)

Solid Queue is the default queuing backend in Rails 8+, providing database-backed job processing without external dependencies.

config/queue.yml

default: &default dispatchers: • polling_interval: 1 batch_size: 500 workers: • queues: "*" threads: 3 processes: <%= ENV.fetch("JOB_CONCURRENCY", 1) %> polling_interval: 0.1 production: <<: *default workers: • queues: [urgent, high, default] threads: 5 processes: 3 • queues: [low, cleanup] threads: 2 processes: 1 `

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 6mo ago
Stale
AdoptionUnder 100 stars
0 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Issues0
Updated6mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code