-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Save a reference to created async tasks, to avoid tasks potentially disappearing #2816
Conversation
Codecov ReportPatch coverage:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2816 +/- ##
==========================================
- Coverage 91.38% 91.37% -0.01%
==========================================
Files 126 126
Lines 32469 32469
==========================================
- Hits 29671 29669 -2
- Misses 2798 2800 +2
☔ View full report in Codecov by Sentry. |
@anio: Thanks for bringing the issue up! I am not convinced that the fix is appropriate, though. As the source you provide mentions:
The way I understand it is, that we need to save the task reference beyond the scope of the local / loop variable. As it stands, the reference will be lost almost immediately, rendering the fix ineffective. |
…tially disappearing (redis#2816)" This reverts commit 56b254e.
…tially disappearing (redis#2816)" This reverts commit 56b254e.
…tially disappearing (redis#2816)" This reverts commit 56b254e.
…tially disappearing (redis#2816)" This reverts commit 56b254e.
…tially disappearing (redis#2816)" This reverts commit 56b254e.
Pull Request check-list
Please make sure to review and check all of these items:
$ tox
pass with this change (including linting)?NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.
Description of change
Please review the link: https://textual.textualize.io/blog/2023/02/11/the-heisenbug-lurking-in-your-async-code/