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

Gracefully handle decoding exceptions in python backend #1789

Merged
merged 16 commits into from
Aug 15, 2022

Conversation

msaroufim
Copy link
Member

@msaroufim msaroufim commented Aug 10, 2022

Fixes #1776

Test: https://colab.research.google.com/drive/1eKMiheF50YYGtPmi0WqVkeRqLk8Gbwg5?usp=sharing (would probably be better to start writing unit tests for the python backend when we have time)

The meaningful code is at the very end of the file in the try, except block

@msaroufim msaroufim changed the title Gracefully handle JSON decoding exceptions Gracefully handle decoding exceptions in python backend Aug 10, 2022
@pytorch pytorch deleted a comment from codecov bot Aug 11, 2022
@codecov
Copy link

codecov bot commented Aug 11, 2022

Codecov Report

Merging #1789 (1a41193) into master (7a9dd02) will decrease coverage by 0.10%.
The diff coverage is 57.44%.

@@            Coverage Diff             @@
##           master    #1789      +/-   ##
==========================================
- Coverage   45.38%   45.28%   -0.11%     
==========================================
  Files          64       64              
  Lines        2591     2597       +6     
  Branches       60       60              
==========================================
  Hits         1176     1176              
- Misses       1415     1421       +6     
Impacted Files Coverage Δ
ts/protocol/otf_message_handler.py 74.73% <57.44%> (-2.44%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@msaroufim
Copy link
Member Author

@rohithkrn @lxning GPU CI seems to be frozen now

Copy link
Collaborator

@maaquib maaquib left a comment

Choose a reason for hiding this comment

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

This might be a bit better

ts/protocol/otf_message_handler.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@agunapal agunapal left a comment

Choose a reason for hiding this comment

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

looks good

@msaroufim msaroufim merged commit be6226d into master Aug 15, 2022
@msaroufim msaroufim deleted the msaroufim-patch-4 branch August 20, 2022 00:38
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.

Handle invalid json formatted requests without killing the worker process
3 participants