Skip to content

feat(python): add graceful shutdown method - #338

Merged
dd-oleksii merged 1 commit into
Eppo-exp:mainfrom
dd-oleksii:python-graceful-shutdown
Oct 13, 2025
Merged

dd-oleksii merged 1 commit into
Eppo-exp:mainfrom
dd-oleksii:python-graceful-shutdown

Conversation

@dd-oleksii

Copy link
Copy Markdown
Collaborator

No description provided.

@changeset-bot

changeset-bot Bot commented Oct 10, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 591a05e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
python-sdk Minor
eppo_core Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dd-oleksii dd-oleksii changed the title [python] Add graceful shutdown method feat(python): add graceful shutdown method Oct 10, 2025
@rasendubi

Copy link
Copy Markdown
Collaborator

The CI error is unrelated to the PR

Comment on lines +56 to +58
let Ok(mut join_handle) = self.join_handle.lock() else {
return;
};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you see any value in handling a poised mutex here? maybe with a warning log, if it is useful

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really. The only way, the mutex can become poisoned is if the one line below panics (join_handle.take()) which it never does because it's a very simple operation.

@dd-oleksii
dd-oleksii merged commit 3211582 into Eppo-exp:main Oct 13, 2025
40 of 47 checks passed
@dd-oleksii
dd-oleksii deleted the python-graceful-shutdown branch October 13, 2025 12:30
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.

3 participants