Skip to content

fix(error): prevent warnings when trying to increase memory for OOM errors#2063

Open
Litarnus wants to merge 2 commits intomasterfrom
defensive-oom-handling
Open

fix(error): prevent warnings when trying to increase memory for OOM errors#2063
Litarnus wants to merge 2 commits intomasterfrom
defensive-oom-handling

Conversation

@Litarnus
Copy link
Copy Markdown
Contributor

Adds a defensive check to only increase the memory if it would still be below the currently consumed memory. Also prevents warnings from setting memory_limit which might end up in Sentry.

We could consider trying to increase the limit when OOMing to current_memory + 5MB instead

@Litarnus Litarnus marked this pull request as ready for review April 10, 2026 14:13
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