Skip to content

Bootstrap repos parallel#1220

Merged
anfimovdm merged 2 commits into
masterfrom
bootstrap-repos-parallel
May 12, 2026
Merged

Bootstrap repos parallel#1220
anfimovdm merged 2 commits into
masterfrom
bootstrap-repos-parallel

Conversation

@anfimovdm
Copy link
Copy Markdown
Contributor

No description provided.

anfimovdm added 2 commits May 12, 2026 18:20
Cache population and per-repo work are now executed concurrently with
asyncio.gather and a bounded semaphore (BOOTSTRAP_CONCURRENCY env var,
default 10). Behavior is preserved; only the sequential HTTP bottleneck
is removed. Cuts wall time of the bootstrap step roughly 5-10x on
platforms.yaml configurations with many repositories.
Make main() async and use asyncio.run() at the entry point, awaiting
coroutines directly instead of wrapping each call in syncer.sync().
Single event loop for the whole run, cleaner stack traces, one less
indirection. syncer remains a dependency for other scripts.
@anfimovdm anfimovdm merged commit 1c852fe into master May 12, 2026
2 of 3 checks passed
@anfimovdm anfimovdm deleted the bootstrap-repos-parallel branch May 12, 2026 16:01
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