Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Use context-timeouts metric instead of timeouts metric (#74539)

Riley Thompsoncefb17e78bd5
diff --git a/src/metabase/sql_parsing/core.clj b/src/metabase/sql_parsing/core.clj
index 91d3ad09902..5a712b4b5af 100644
--- a/src/metabase/sql_parsing/core.clj
+++ b/src/metabase/sql_parsing/core.clj
@@ -61,7 +61,7 @@
;; This is necessary because future-cancel doesn't stop GraalVM execution
(python.pool/interrupt! ~ctx 1000)
(python.pool/poison! ~ctx)
- (analytics/inc! :metabase-sql-parsing/timeouts)
+ (analytics/inc! :metabase-sql-parsing/context-timeouts)
(log/warn "Python execution timed out after" ~timeout-ms "ms - GraalVM interrupted")
(throw (TimeoutException. (str "Python execution timed out after " ~timeout-ms "ms"))))
result#)))