Repository navigation
reddit firehose: pace pages, survive 'slow down', never lag past the hour - #280
Merged
Merged
Conversation
…hour Arctic Shift answers 422 'Timeout. Maybe slow down a bit' after ~5 back- to-back pages (measured), and pages are capped at 100 (~6 s of Reddit). So: - pages 4 s apart, 12 per pass, a pass every 60 s (~11/min, just over Reddit's pace); env REDDIT_FIREHOSE_GAP_MS / _PAGES / _MS - a refusal ends the pass but keeps and stores what it read; the next pass resumes from the cursor - more than 50 min behind, skip to 5 min back and log 'skipped' - reddit per-source floor 60 min -> 7 days: the firehose carries new posts, and per-sub asks spend the same per-IP budget - drop the on-view refresh from #278 (bots read /r/* constantly, and each view would spend that budget too) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sh1pt-actions-fleet
Bot
force-pushed
the
reddit-firehose-pacing
branch
from
November 9, 2026 20:22
ef200ee to
a4ab3f5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #279: the first deploy hit Arctic Shift's 422 'slow down' every pass. Paced, failure-tolerant, lag-bounded; per-sub reddit crawl reduced to a weekly check.
🤖 Generated with Claude Code