-
Notifications
You must be signed in to change notification settings - Fork 27
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
🐛 Dy-Sidecar fix use wait_for instead of async_timeout for running subtasks #3129
🐛 Dy-Sidecar fix use wait_for instead of async_timeout for running subtasks #3129
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Codecov Report
@@ Coverage Diff @@
## master #3129 +/- ##
========================================
- Coverage 81.0% 81.0% -0.1%
========================================
Files 706 706
Lines 30490 30489 -1
Branches 3949 3949
========================================
- Hits 24705 24703 -2
Misses 4941 4941
- Partials 844 845 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/scheduler/task.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent!
services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/scheduler/task.py
Show resolved
Hide resolved
afda743
to
ad4133c
Compare
services/director-v2/src/simcore_service_director_v2/api/routes/dynamic_services.py
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What do these changes do?
This PR fixes an issue where an asynchronous task is not properly cancelled when a timeout occurs.
Be very careful when using such constructs as:
Instead in such case use
One issue that was found, is that httpx.clients were issuing PoolTimeout errors. These happen when all the connections in the pool are used, which should NEVER happen.
Related issue/s
How to test
Checklist