Enable parallel backfill by eliminating shared state between providers#63288
Merged
Conversation
d2ce7e2 to
02d1e52
Compare
Add --provider and --providers-json flags to extract_parameters.py and extract_connections.py so each backfill run uses an isolated temp providers.json and only scans the target provider. In --provider mode, modules.json is not written (it would be incomplete), so concurrent runs don't clobber each other. The backfill command now creates a TemporaryDirectory with per-version providers.json files instead of patching a shared file.
02d1e52 to
c55426b
Compare
potiuk
approved these changes
Mar 10, 2026
gopidesupavan
approved these changes
Mar 10, 2026
bugraoz93
approved these changes
Mar 10, 2026
dominikhei
pushed a commit
to dominikhei/airflow
that referenced
this pull request
Mar 11, 2026
apache#63288) Add --provider and --providers-json flags to extract_parameters.py and extract_connections.py so each backfill run uses an isolated temp providers.json and only scans the target provider. In --provider mode, modules.json is not written (it would be incomplete), so concurrent runs don't clobber each other. The backfill command now creates a TemporaryDirectory with per-version providers.json files instead of patching a shared file.
Pyasma
pushed a commit
to Pyasma/airflow
that referenced
this pull request
Mar 13, 2026
apache#63288) Add --provider and --providers-json flags to extract_parameters.py and extract_connections.py so each backfill run uses an isolated temp providers.json and only scans the target provider. In --provider mode, modules.json is not written (it would be incomplete), so concurrent runs don't clobber each other. The backfill command now creates a TemporaryDirectory with per-version providers.json files instead of patching a shared file.
Closed
1 task
Closed
1 task
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 #63269. The backfill command previously used shared
providers.jsonstate, meaning twobreeze registry backfillruns for different providers couldn't safely execute concurrently.This adds
--providerand--providers-jsonflags to both extraction scripts (extract_parameters.py,extract_connections.py) so each backfill run uses an isolated tempproviders.jsonand only scans the target provider. In--providermode,modules.jsonis not written (it would be incomplete), so concurrent runs don't clobber each other.What changed
extract_parameters.py:--providerflag filters to single provider and skipsmodules.json/runtime_modules.jsonwrites;--providers-jsonoverrides the default search pathsextract_connections.py: Same two flags — filters output to single provider and accepts a custom providers.json pathregistry_commands.py: Backfill command now creates a tempproviders.jsonper version in aTemporaryDirectory, passes--provider/--providers-jsonto scripts, removes the_patch_providers_jsonsave/restore patternUsage
Two terminal sessions can now safely backfill different providers simultaneously:
The
registry-backfill.ymlGitHub Actions workflow already uses a matrix strategy per provider, so this also makes individual CI jobs faster (no longer scanning 100+ providers per run).