Skip to content

Commit 3190022

Browse files
committed
crates_io_worker: Add README.md
1 parent 9c35d0e commit 3190022

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

crates/crates_io_worker/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# crates_io_worker
2+
3+
This package contains the background job runner for the crates.io application.
4+
5+
The implementation was originally extracted from crates.io into the separate
6+
[`swirl`](https://github.com/sgrif/swirl) project, but has since been
7+
re-integrated and heavily modified.
8+
9+
The background worker uses a `background_jobs` PostgreSQL table to store jobs
10+
that need to be run. Once a job is picked up by a worker, the table row is
11+
locked, and the job is run. If the job fails, it will be retried with
12+
exponential backoff. If the job succeeds, the row will be deleted.

crates/crates_io_worker/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![doc = include_str!("../README.md")]
2+
13
mod background_job;
24
mod errors;
35
mod job_registry;

0 commit comments

Comments
 (0)