Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Remove vestigial timeouts from data refresh configurations (#4353)
Johan Naizu7a4819d2eb2f
diff --git a/catalog/dags/legacy_data_refresh/data_refresh_types.py b/catalog/dags/legacy_data_refresh/data_refresh_types.pyindex 3a5238a0b..96164f9d9 100644--- a/catalog/dags/legacy_data_refresh/data_refresh_types.py+++ b/catalog/dags/legacy_data_refresh/data_refresh_types.py@@ -33,15 +33,6 @@ class DataRefresh:airflow.dag.DAG __init__ method.data_refresh_timeout: timedelta expressing the amount of time the datarefresh (run by the ingestion server) may take.- refresh_metrics_timeout: timedelta expressing amount of time the- refresh popularity metrics tasks may take.- refresh_matview_timeout: timedelta expressing amount of time the- refresh of the popularity matview may take.- create_pop_constants_view_timeout: timedelta expressing amount of time the- creation of the popularity constants view- may take- create_materialized_view_timeout: timedelta expressing amount of time the- creation of the matview may takeindex_readiness_timeout: timedelta expressing amount of time it may taketo await a healthy ES index after reindexingdoc_md: str used for the DAG's documentation markdown@@ -60,10 +51,6 @@ class DataRefresh:schedule: str | None = "0 0 * * 1" # Mondays 00:00 UTCdefault_args: dict = field(default_factory=dict)data_refresh_timeout: timedelta = timedelta(days=1)- refresh_metrics_timeout: timedelta = timedelta(hours=1)- refresh_matview_timeout: timedelta = timedelta(hours=1)- create_pop_constants_view_timeout: timedelta = timedelta(hours=1)- create_materialized_view_timeout: timedelta = timedelta(hours=1)create_filtered_index_timeout: timedelta = timedelta(days=1)index_readiness_timeout: timedelta = timedelta(days=1)data_refresh_poke_interval: int = REFRESH_POKE_INTERVAL@@ -78,10 +65,6 @@ DATA_REFRESH_CONFIGS = {IMAGE: DataRefresh(media_type="image",data_refresh_timeout=timedelta(days=4),- refresh_metrics_timeout=timedelta(hours=24),- refresh_matview_timeout=timedelta(hours=72),- create_pop_constants_view_timeout=timedelta(hours=24),- create_materialized_view_timeout=timedelta(hours=72),data_refresh_poke_interval=int(os.getenv("DATA_REFRESH_POKE_INTERVAL", 60)),filtered_index_poke_interval=int(os.getenv("DATA_REFRESH_POKE_INTERVAL", 60 * 30)