Skip to content

Commit 3a7834c

Browse files
authored
wait view timeout_s (#1195)
1 parent 775b428 commit 3a7834c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

v03_pipeline/lib/misc/clickhouse.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
GCS_NAMED_COLLECTION = 'pipeline_data_access'
2727
GOOGLE_XML_API_PATH = 'https://storage.googleapis.com/'
2828
OPTIMIZE_TABLE_TIMEOUT_S = 99999
29+
WAIT_VIEW_TIMEOUT_S = 900
2930
REDACTED = 'REDACTED'
3031
STAGING_CLICKHOUSE_DATABASE = 'staging'
3132

@@ -529,7 +530,7 @@ def refresh_materialized_views(
529530
f"""
530531
SYSTEM WAIT VIEW {table_name_builder.staging_dst_table(materialized_view) if staging else table_name_builder.dst_table(materialized_view)}
531532
""",
532-
timeout=600,
533+
timeout=WAIT_VIEW_TIMEOUT_S,
533534
)
534535

535536

@@ -807,7 +808,7 @@ def load_complete_run(
807808
f"""
808809
SYSTEM WAIT VIEW {clickhouse_reference_data.seqr_variants_to_search_mv_path(table_name_builder)}
809810
""",
810-
timeout=300,
811+
timeout=WAIT_VIEW_TIMEOUT_S,
811812
)
812813
else:
813814
logged_query(

0 commit comments

Comments
 (0)