Skip to content

Conversation

@AlyssaCote
Copy link
Contributor

In this PR I fix the exception_handler so that it only builds and serializes a failure response if a reply channel is not None. I also needed to tweak the tests a bit by mocking out the reply channels.

Copy link
Contributor

@mellis13 mellis13 left a comment

Choose a reason for hiding this comment

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

Thanks!

@codecov
Copy link

codecov bot commented Aug 29, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Please upload report for BASE (mli-feature@5d85995). Learn more about missing BASE report.

Files with missing lines Patch % Lines
..._core/mli/infrastructure/control/error_handling.py 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff               @@
##             mli-feature     #687   +/-   ##
==============================================
  Coverage               ?   71.34%           
==============================================
  Files                  ?      102           
  Lines                  ?     8525           
  Branches               ?        0           
==============================================
  Hits                   ?     6082           
  Misses                 ?     2443           
  Partials               ?        0           
Files with missing lines Coverage Δ
..._core/mli/infrastructure/control/error_handling.py 0.00% <0.00%> (ø)

Copy link
Collaborator

@al-rigazzi al-rigazzi left a comment

Choose a reason for hiding this comment

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

LGTM, another step towards super-short response times

reply_channel.send(serialized_resp)
else:
logger.warning("Unable to notify client of error without reply_channel")
logger.warning("Unable to notify client of error without a reply channel")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yep, you're right!

@AlyssaCote AlyssaCote merged commit 128598b into CrayLabs:mli-feature Aug 29, 2024
@AlyssaCote AlyssaCote self-assigned this Aug 29, 2024
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