Skip to content

feat(crawl): configurable priority for crawl-derived archive jobs - #23

Merged
robbiebyrd merged 2 commits into
mainfrom
feat/crawl-job-priority
Jul 21, 2026
Merged

feat(crawl): configurable priority for crawl-derived archive jobs#23
robbiebyrd merged 2 commits into
mainfrom
feat/crawl-job-priority

Conversation

@robbiebyrd

Copy link
Copy Markdown
Collaborator

What

Adds a CRAWL_JOB_PRIORITY env var (default 10, valid range 22097152) that controls the queue priority of crawl-derived archive jobs.

Behavior

  • Foreground/exact requests stay at priority 1 (top of the queue).
  • Crawl-derived exact jobs enqueue at the configured, numerically-higher (i.e. lower) priority, so background crawl work never starves live requests.
  • archive-job-client reorders matching jobs to the configured priority on enqueue.
  • loadConfig() validates the range and throws on out-of-bounds values.

Tests

124 passed across archive-job-client, config, dependencies, and time-machine suites.

🤖 Generated with Claude Code

Robbie Byrd and others added 2 commits July 21, 2026 03:45
Add a CRAWL_JOB_PRIORITY env (default 10, valid range 2-2097152) so
crawl-derived exact jobs enqueue at a numerically-higher (lower)
priority than foreground exact requests, which stay at priority 1.
The archive-job-client reorders matching jobs to the configured
priority on enqueue; loadConfig validates the range and throws on
out-of-bounds values.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The env var was wired and validated but undocumented; add it to the
env-var table and the .env.example worker/crawler section alongside its
siblings so operators know the knob exists.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@robbiebyrd
robbiebyrd merged commit fcf7722 into main Jul 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant