File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change
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.
Original file line number Diff line number Diff line change
1
+ #![ doc = include_str ! ( "../README.md" ) ]
2
+
1
3
mod background_job;
2
4
mod errors;
3
5
mod job_registry;
You can’t perform that action at this time.
0 commit comments