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

Fix throwing errors from Executor.join_async() #208

Merged
3 commits merged into from
Nov 4, 2022

Conversation

mdemoret-nv
Copy link
Contributor

Exceptions from both python and C++ were getting printed to the log but not raised in python when using Executor.join_async(). This boils down to the fact that future::wait() was called instead of future::get() which actually rethrows the exception.

Added some tests to check this functionality

@mdemoret-nv mdemoret-nv added bug Something isn't working non-breaking Non-breaking change labels Nov 4, 2022
@mdemoret-nv mdemoret-nv requested a review from a team as a code owner November 4, 2022 18:10
@codecov-commenter
Copy link

Codecov Report

Base: 37.96% // Head: 38.55% // Increases project coverage by +0.59% 🎉

Coverage data is based on head (a02c0bc) compared to base (827ff38).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@               Coverage Diff                @@
##           branch-22.11     #208      +/-   ##
================================================
+ Coverage         37.96%   38.55%   +0.59%     
================================================
  Files               101      101              
  Lines              2439     2443       +4     
  Branches           1144     1145       +1     
================================================
+ Hits                926      942      +16     
+ Misses              716      694      -22     
- Partials            797      807      +10     
Impacted Files Coverage Δ
python/srf/_pysrf/src/executor.cpp 32.05% <0.00%> (+10.71%) ⬆️
python/srf/_pysrf/src/segment.cpp 27.55% <0.00%> (+4.08%) ⬆️
include/srf/node/rx_source.hpp 70.00% <0.00%> (+12.10%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

python/srf/tests/utils.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@dagardner-nv dagardner-nv left a comment

Choose a reason for hiding this comment

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

LGTM

@mdemoret-nv
Copy link
Contributor Author

@gpucibot merge

@ghost ghost merged commit 2451382 into nv-morpheus:branch-22.11 Nov 4, 2022
@mdemoret-nv mdemoret-nv deleted the mdd_fix-executor-error branch November 4, 2022 20:55
ghost pushed a commit to nv-morpheus/Morpheus that referenced this pull request Nov 18, 2022
This PR was some outstanding work that was a result of changes in the SRF PR: nv-morpheus/MRC#208.

If an exception is detected, we can try to manually call stop on all stages to allow for better shutdown behavior. Included in this PR are fixes to remove `CMAKE_BUILD_RPATH_USE_ORIGIN` from the CMake file which breaks building SRF with Morpheus at the same time. This option is only needed during the CI build so it was added manually to the CI scripts.

Authors:
  - Michael Demoret (https://github.com/mdemoret-nv)

Approvers:
  - David Gardner (https://github.com/dagardner-nv)

URL: #478
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants