tgravescs commented on code in PR #54106:
URL: https://github.com/apache/spark/pull/54106#discussion_r2817773454
##########
python/pyspark/sql/connect/client/core.py:
##########
@@ -755,8 +755,11 @@ def __init__(
self._release_futures: weakref.WeakSet[concurrent.futures.Future] =
weakref.WeakSet()
- # cleanup ml cache if possible
- atexit.register(self._cleanup_ml_cache)
+ self._release_session_on_exit = os.getenv(
+ "SPARK_CONNECT_RELEASE_SESSION_ON_EXIT", "false"
Review Comment:
I agree, that would be nice. the documentation seems a bit scattered right
now, do you have recommendation on where to put this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]