Skip to content

Conversation

@duncanista
Copy link
Contributor

@duncanista duncanista commented Nov 22, 2024

What?

Handles OOM exceptions, sending enhanced metric as expected.

Screenshot 2024-11-21 at 4 23 14 PM

Notes

Metrics look iffy, but that's OK, because when the sandbox get's signal-killed, there's no way for us to tell that we got OOM as of now.

@duncanista duncanista changed the base branch from main to jordan.gonzalez/bottlecap/timeout-handling November 22, 2024 00:15
@duncanista duncanista marked this pull request as ready for review November 22, 2024 00:23
@duncanista duncanista requested a review from a team as a code owner November 22, 2024 00:23
Base automatically changed from jordan.gonzalez/bottlecap/timeout-handling to main November 22, 2024 00:24
Event::OutOfMemory => {
let mut p = invocation_processor.lock().await;
p.on_out_of_memory_error();
drop(p);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this explicit drop?
They are all over the place and I think they are useless since it is done automatically at the end of the block

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe not on the ones where we have it at the end, we can improve this later

@duncanista duncanista merged commit 6d29646 into main Nov 22, 2024
12 checks passed
@duncanista duncanista deleted the jordan.gonzalez/bottlecap/oom-handling branch November 22, 2024 18:00
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.

3 participants