Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Add instructions for skipping the database restore DAG to docs (#2307)

Madison Swain-Bowden471f46c0190b
diff --git a/catalog/DAGs.md b/catalog/DAGs.md
index f909cdc8d..b54ed379a 100644
--- a/catalog/DAGs.md
+++ b/catalog/DAGs.md
@@ -716,6 +716,11 @@ snapshot of the production database.
For a full explanation of the DAG, see the implementation plan description:
https://docs.openverse.org/projects/proposals/search_relevancy_sandbox/20230406-implementation_plan_update_staging_database.html#dag
+This DAG can be skipped by setting the `SKIP_STAGING_DATABASE_RESTORE` Airflow
+Variable to `true`. To change this variable, navigate to Admin > Variables in
+the Airflow UI, then click the "edit" button next to the variable and set the
+value to either `true` or `false`.
+
This DAG will default to using the standard AWS connection ID for the RDS
operations. For local testing, you can set up two environment variables to have
the RDS operations run using a different hook:
diff --git a/catalog/dags/database/staging_database_restore/staging_database_restore_dag.py b/catalog/dags/database/staging_database_restore/staging_database_restore_dag.py
index 0370fbca7..f148b3157 100644
--- a/catalog/dags/database/staging_database_restore/staging_database_restore_dag.py
+++ b/catalog/dags/database/staging_database_restore/staging_database_restore_dag.py
@@ -7,6 +7,11 @@ snapshot of the production database.
For a full explanation of the DAG, see the implementation plan description:
https://docs.openverse.org/projects/proposals/search_relevancy_sandbox/20230406-implementation_plan_update_staging_database.html#dag
+This DAG can be skipped by setting the `SKIP_STAGING_DATABASE_RESTORE` Airflow Variable
+to `true`. To change this variable, navigate to Admin > Variables in the Airflow UI,
+then click the "edit" button next to the variable and set the value to either `true`
+or `false`.
+
This DAG will default to using the standard AWS connection ID for the RDS operations.
For local testing, you can set up two environment variables to have the RDS operations
run using a different hook: