-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More optimized lazy-loading of provider information (#17304)
With this change we truly lazy-load hooks and external_links only when we need them. Previously they were loaded when any of the properties of ProvidersManager was used, but with this change in some scenarios where only extra links are used or when we only need list of providers, but we do not need details on which custom hooks are needed, there will be much faster initialization. This is mainly for some CLI commands (for example `airlfow providers list` is much faster now), but also in some scenarios where for example .get_conn() is never used in Tasks, tasks might also never need to import/load the hooks and they might perform faster, with smaller memory footprint. (cherry picked from commit 2dc7aa8)
- Loading branch information
Showing
2 changed files
with
52 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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