# Shopify/job-iteration

Makes your background jobs interruptible and resumable by design.

Repository: https://github.com/Shopify/job-iteration
Canonical: https://ross.abutalabs.com/products/job-iteration
Homepage: https://www.rubydoc.info/gems/job-iteration
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-08-11T10:03:17+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 72, longevity 100
- inputs: {"age_days": 3003, "days_push": 22, "days_rel": 111, "gap_med": 55, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1313, forks 60 (observed 2026-08-28T04:04:20.324233+00:00)

## What it is
A Ruby gem extending ActiveJob that makes long-running background jobs interruptible and resumable via cursor-based checkpointing. Developed at Shopify, it lets jobs safely survive deploys, worker restarts, and infrastructure disruptions without losing progress.

## Use cases
- resume background jobs after deploys or restarts
- process millions of ActiveRecord records in a job without losing progress
- make long-running ActiveJob jobs interruptible and resumable
- safely handle worker restarts and pod evictions during batch processing
- checkpoint job progress when iterating over database relations
- backfill or migrate large datasets in background jobs

## When to choose
- you run long-running background jobs on Rails/ActiveJob that risk being interrupted by deploys or infrastructure restarts
- you need resumable iteration over large ActiveRecord relations or batches
- you operate in cloud environments where workers can be evicted at any time

## When to avoid
- your jobs are short-lived and rarely interrupted
- you don't use Rails ActiveJob or a Ruby backend
- you need a general-purpose job scheduler or queue rather than an iteration extension

## Facets
- artifact type: library
- maturity: stable
- function: concurrency, workflow-automation, developer-tools
- domain: backend, web-development, microservices
- platform: ruby, cloud
- tags: activejob, background-jobs, resumable-jobs, checkpointing, rails, long-running-jobs, job-processing, automation, web-server

## Member repositories
- Shopify/job-iteration (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:20.324233+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:48:49.349493+00:00, confidence not recorded.
  - readme: https://github.com/Shopify/job-iteration (fetched 2026-08-28T04:04:20.324233+00:00, sha df8e6c3cfe4c)
  - homepage: https://www.rubydoc.info/gems/job-iteration (fetched 2026-08-29T12:07:23.433349+00:00, sha 36809a830d25)
- Data as of 2026-08-30T08:39:29.467469+00:00.
