Skip to content

Commit

Permalink
Exclude db_restore from waiting on proportional index dag
Browse files Browse the repository at this point in the history
  • Loading branch information
stacimc committed Mar 14, 2024
1 parent 34f59de commit cffaa7a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
restore_staging_from_snapshot,
skip_restore,
)
from elasticsearch_cluster.create_proportional_by_source_staging_index.create_proportional_by_source_staging_index_dag import (
DAG_ID as CREATE_PROPORTIONAL_BY_SOURCE_DAG_ID,
)


log = logging.getLogger(__name__)
Expand All @@ -80,6 +83,9 @@ def restore_staging_database():
# Wait for any DAGs that operate on the staging elasticsearch cluster
wait_for_recreate_full_staging_index = wait_for_external_dags_with_tag(
tag=STAGING_ES_CONCURRENCY_TAG,
# No need to wait on the proportional index DAG, which does not use
# the underlying database
excluded_dag_ids=[CREATE_PROPORTIONAL_BY_SOURCE_DAG_ID],
)
should_skip = skip_restore()
latest_snapshot = get_latest_prod_snapshot()
Expand Down

0 comments on commit cffaa7a

Please sign in to comment.