Skip to content

Conversation

@andyscho
Copy link
Contributor

@andyscho andyscho commented Feb 5, 2024

This fixes the issue in #204416 (and microsoft/vscode-jupyter#15075)

This change just switches from each kernel that's added getting its own individual listener to just having a single listener for all the kernels. This way the number of listeners doesn't grow arbitrarily large to the point where it hits a threshold. Alternative solutions could include setting a higher threshold for the leakage monitoring for the relevant Emitter or failing with a more user-friendly error if there are lots of kernels added, but this seems nicer.

@andyscho andyscho force-pushed the fix-lots-of-kernel-subscribers branch from bc1910a to 5f502f8 Compare February 5, 2024 21:37
@andyscho
Copy link
Contributor Author

andyscho commented Feb 5, 2024

@microsoft-github-policy-service agree company="Jane Street"

@rebornix
Copy link
Member

Thanks for the contribution, will merge this change in next debt week.

@rebornix rebornix merged commit 59ec734 into microsoft:main Mar 7, 2024
@rebornix
Copy link
Member

rebornix commented Mar 7, 2024

Merged in main, thanks @andyscho for your contribution!

rebornix added a commit that referenced this pull request Mar 8, 2024
rebornix added a commit that referenced this pull request Mar 8, 2024
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants