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

Log exception on Python runner termination #49890

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

antban
Copy link

@antban antban commented Feb 11, 2025

What changes were proposed in this pull request?

There are situations, when python worker may throw exceptions that are not covered by any other kind of logging (for example custom implementation/unexpected throw from existing code)

In these situations it is hard to debug which exactly issue happened, as there is no stack trace in logs and no actual message from exception.

To address this issue exception is added for the logging call (rare exception situation while stopping python worker)

Why are the changes needed?

To effectively debug rare situations with worker termination.

Does this PR introduce any user-facing change?

no

How was this patch tested?

no need

Was this patch authored or co-authored using generative AI tooling?

no

There are situations, when python worker may throw exceptions that are not covered by
any other kind of logging (for example custom implementation/enexpected throw from existing code)

In these situations it is hard to debug which exactly issue happened, as there is no stack trace
in logs and no actual message from exception.

To address this issue exception is added for the logging call (rare exception situation while
stopping python worker)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants