From 1bd99c4f1ac4454c23e7d3ca6986209797851a4d Mon Sep 17 00:00:00 2001 From: "Reuven V. Gonzales" Date: Thu, 19 Sep 2024 16:55:39 +0000 Subject: [PATCH] ensure we can run many different metrics at once --- warehouse/metrics_tools/lib/factories/factory.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/warehouse/metrics_tools/lib/factories/factory.py b/warehouse/metrics_tools/lib/factories/factory.py index 0cb18c56..67e9a034 100644 --- a/warehouse/metrics_tools/lib/factories/factory.py +++ b/warehouse/metrics_tools/lib/factories/factory.py @@ -125,6 +125,7 @@ def generate_models_from_query( "name": ModelKindName.INCREMENTAL_BY_TIME_RANGE, "time_column": "metrics_sample_date", "batch_size": 1, + "batch_concurrency": 1, }, dialect="clickhouse", columns=columns, @@ -349,3 +350,4 @@ def timeseries_metrics( # raise Exception("no queries generated from the evaluated queries") # top_level_select = top_level_select.with_(f"all_{cte_suffix}", union_cte) # return top_level_select +# return top_level_select