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: do not use Task.Wait to avoid deadlocks #137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

polomani
Copy link
Collaborator

I noticed the Dwsim doesn't recover when it fails somewhere inside ProcessDownloadedFiles. Inspecting the code I found this (the only place where we use Wait(). Removing it to see if it helps

https://blog.stephencleary.com/2012/07/dont-block-on-async-code.html

I noticed the dwsim doesn't recover when it fails somewhere inside ProcessDownloadedFiles.
Inspecting the code I found this (the only place where we use .Wait().
removeing it to see if it helps

https://blog.stephencleary.com/2012/07/dont-block-on-async-code.html
@polomani polomani requested a review from a team as a code owner June 18, 2024 09:12
Copy link

codecov bot commented Jun 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.43%. Comparing base (d96a9b7) to head (d76f6b0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #137      +/-   ##
==========================================
- Coverage   68.49%   68.43%   -0.07%     
==========================================
  Files          28       28              
  Lines        3019     3019              
  Branches      352      352              
==========================================
- Hits         2068     2066       -2     
- Misses        811      814       +3     
+ Partials      140      139       -1     
Files Coverage Δ
Cognite.Simulator.Utils/ModelLibraryBase.cs 72.80% <100.00%> (-0.55%) ⬇️

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.

1 participant