Skip to content

Rate-limit the PubChem crawl and checkpoint incrementally - #75

Merged
rvnminers-A-and-N merged 1 commit into
mainfrom
crawl-throttle-checkpoint
Jul 2, 2026
Merged

rvnminers-A-and-N merged 1 commit into
mainfrom
crawl-throttle-checkpoint

Conversation

@rvnminers-A-and-N

Copy link
Copy Markdown
Collaborator

The 4-calls-per-molecule burst tripped PubChem's 503 throttle, so retry backoff dominated wall time. Pace requests to ~4.5/s (under the 5/s ceiling) with a shared min-interval and back off harder on an explicit 503 — steady pacing runs the whole 3,845-molecule set in ~90s (vs. hours throttled). Also checkpoint the merged table every 100 molecules and skip already-named InChIKeys on start, so a long crawl survives interruption and resumes cleanly.

Ran end-to-end: properties.parquet now holds 3,194 rows — 2,729 with common+IUPAC names, 236 with measured BP. Server restarted; substitution/palette/neighbor names now resolve instantly and offline from the table.

The 4-calls-per-molecule burst was tripping PubChem's 503 throttle, so retry
backoff dominated wall time (a full labeled-set pass would have taken hours).
Pace requests to ~4.5/s (under the 5/s ceiling) with a shared min-interval, and
back off harder on an explicit 503 — steady pacing runs the whole 3,845-molecule
set in ~90s. Also checkpoint the merged table every 100 molecules and skip
already-named InChIKeys on start, so a long crawl survives interruption and
resumes where it left off instead of only writing once at the very end.

Signed-off-by: Austin L. <86896075+rvnminers-A-and-N@users.noreply.github.com>
@rvnminers-A-and-N
rvnminers-A-and-N merged commit 1600139 into main Jul 2, 2026
3 checks passed
@rvnminers-A-and-N
rvnminers-A-and-N deleted the crawl-throttle-checkpoint branch July 2, 2026 11:58
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