Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Disco] Expose disco.Session.shutdown through the python API #16979

Merged
merged 1 commit into from May 13, 2024

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
19 checks passed
@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.

None yet

2 participants