-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update init scripts to use new data refresh (#4962)
* Fix task dependencies, allow overriding of index suffix The TaskGroups that created new indices were returning the name of the index from the taskgroup, in order to allow accessing the index names later in other parts of the DAG. Unfortunately this was breaking the expected dependency list in the DAG; only the returned task was being set upstream to downstream tasks, rather than the last task in the TaskGroup. TL;DR it was possible for, for example, creation of the filtered index to fail, but then table/index promotion would proceed anyway! This commit fixes that by pulling the tasks to generate the index names out of the TaskGroups so they can be used directly at any point in the DAG. * Set schedule to None for staging data refreshes This is necessary for the load sample data script, so we can load sample data by running the staging DAGs. If they were on any kind of automated schedule, we would have to contend with scheduled runs in addition to our manual ones. * Add just recipe to run single airflow cli command * Start using the new DAGs in load_sample_data * Update DAG docs * Add catalog dependency to api tests in ci * Start catalog before initializing api * Remove accidental copy/paste * Populate AIRFLOW_CONN_SENSITIVE_TERMS in init scripts if missing using @sarayourfriend implementation * Add option to allow concurrent refreshes, enable during load_sample_data This allows the init scripts to run faster as the DAGs can run concurrently when there is no risk of negative impact to ES CPU. * Avoid naming collisions in FDW, schema, connection id when data refreshes run concurrently
- Loading branch information
Showing
14 changed files
with
175 additions
and
116 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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.