add concurrent processing with deadlock workaround and progress bar fixes#813
Merged
add concurrent processing with deadlock workaround and progress bar fixes#813
Conversation
Owner
furlongm
commented
Apr 22, 2026
- add run_concurrently() helper with multiprocessing.Pool fallback for python < 3.12 (CPython #105829)
- add CONCURRENT_PROCESSING and CONCURRENT_WORKERS settings
- add max_workers param and serial fallback to all errata sources
- switch osv.dev enrichment to two-phase fetch/parse with connection pooling
- add exception handling for threadpool futures in enrich_errata
- switch arch to ThreadPoolExecutor, default serial to avoid rate limiting
- add null guards for arch errata fetch failures
- disable tqdm TMonitor thread with monitor_interval = 0
- add clear_forked_pbar to wrapper functions for forked workers
- add prefetch_related to alma modules, batch module adds for rocky
- add mininterval=0.5 to tqdm progress bars
- move function-level imports to top-level in errata sources
35d68e7 to
99ff200
Compare
Contributor
There was a problem hiding this comment.
Looks good. Worth considering though. View full project report here.
99ff200 to
021c6fb
Compare
Contributor
There was a problem hiding this comment.
Some things to consider. View full project report here.
021c6fb to
79e74a3
Compare
Contributor
There was a problem hiding this comment.
Some food for thought. View full project report here.
…ixes - add run_concurrently() helper with multiprocessing.Pool fallback for python < 3.12 (CPython #105829) - add CONCURRENT_PROCESSING and CONCURRENT_WORKERS settings - add max_workers param and serial fallback to all errata sources - switch osv.dev enrichment to two-phase fetch/parse with connection pooling - add exception handling for threadpool futures in enrich_errata - switch arch to ThreadPoolExecutor, default serial to avoid rate limiting - add null guards for arch errata fetch failures - disable tqdm TMonitor thread with monitor_interval = 0 - add clear_forked_pbar to wrapper functions for forked workers - add prefetch_related to alma modules, batch module adds for rocky
79e74a3 to
1bdb181
Compare
Contributor
There was a problem hiding this comment.
Looks good. Worth considering though. View full project report here.
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.