Skip to content

Commit

Permalink
Dont wait forever after subproces is terminated
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Oct 26, 2023
1 parent 7c29974 commit 3fbb905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
- name: Test with pytest
run: |
pytest -vv --cov=grpc4bmi --cov-report xml
timeout-minutes: 20
- name: Correct coverage paths
run: sed -i "s+$PWD/++g" coverage.xml
- name: SonarCloud analysis
Expand Down
2 changes: 1 addition & 1 deletion grpc4bmi/bmi_client_subproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, module_name, path=None, timeout=None, delay=1):

def __del__(self):
self.pipe.terminate()
self.pipe.wait()
self.pipe.wait(timeout=0.1)

def get_value_ref(self, var_name):
raise NotImplementedError("Cannot exchange memory references across process boundary")

0 comments on commit 3fbb905

Please sign in to comment.