Skip to content

Conversation

@Lunderberg
Copy link
Contributor

Prior to this commit, the SessionObj::Shutdown method could be called from the C++ API, but could not be called through the Python API. While it is implicitly called when the SessionObj is destructed, Python's garbage collection may result in the destruction occurring later than expected.

This commit exposes SessionObj::Shutdown through the Python API as disco.Session.shutdown, allowing it to be closed cleanly.

Prior to this commit, the `SessionObj::Shutdown` method could be
called from the C++ API, but could not be called through the Python
API.  While it is implicitly called when the `SessionObj` is
destructed, Python's garbage collection may result in the destruction
occurring later than expected.

This commit exposes `SessionObj::Shutdown` through the Python API as
`disco.Session.shutdown`, allowing it to be closed cleanly.
@masahi masahi merged commit fd820ad into apache:main May 13, 2024
@Lunderberg Lunderberg deleted the disco_shutdown_session branch May 13, 2024 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants