Skip to content

Conversation

@dennisrijsdijk
Copy link
Collaborator

@dennisrijsdijk dennisrijsdijk commented Jan 7, 2026

Description of the Change

This PR adds logic to unsubscribe the event handler on the AbortSignals used in the EffectRunner to allow them and the effect context to be garbage collected.

Applicable Issues

#3402

Testing

I've ensured that effects still run as expected after the changes in the effect runner

I've done manual stress-testing for this issue by repeatedly triggering the effect runner, which has shown a significant decrease in memory usage buildup.

Additionally, I've deployed a test build to two streamers' bots that normally crash within 72 hours and observed the same decrease in memory usage and buildup in a real usage scenario.

@dennisrijsdijk dennisrijsdijk requested a review from ebiggz as a code owner January 7, 2026 15:21
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