There was an error while loading. Please reload this page.
1 parent aed1178 commit 6e9d7b3Copy full SHA for 6e9d7b3
1 file changed
dbt-athena/src/dbt/adapters/athena/spark_connect/session.py
@@ -26,7 +26,12 @@ class _GlobalSessionLimitReached(Exception):
26
27
28
class SparkConnectSessionPool:
29
- """Singleton pool of Athena Spark Connect sessions."""
+ """Singleton pool of Athena Spark Connect sessions.
30
+
31
+ Singleton so dbt Cloud's long-lived process can share sessions across
32
+ invocations; ``(invocation_id, fingerprint)`` keying keeps each
33
+ invocation logically isolated within the shared registry.
34
+ """
35
36
_instance: Optional["SparkConnectSessionPool"] = None
37
_singleton_lock = threading.Lock()
0 commit comments