-
Notifications
You must be signed in to change notification settings - Fork 285
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
fix(veritech): When errors occur that don't cause us to retry the function, inform subscribers #5263
Conversation
Dependency Review✅ No vulnerabilities or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
Ok(function_result) => { | ||
if let Err(err) = publisher.publish_result(&function_result).await { | ||
metric!(counter.function_run.action = -1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is scooped up by the dec call below, yeah?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah were we double decrementing here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I think just leftover from pre-refactor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This keeps the DVU from getting stuck! 🚀
e04f617
to
c34536d
Compare
…ction, inform subscribers This change ensures that for all functions types, when errors occur (such as killing a function, or timing out), we inform subscribers of the failure so they can handle them appropriately. The main issue this fixes is during Pinga jobs, if a function times out or is killed, the job will continue to run until it hits its own time out, exacerbating hung change sets
c34536d
to
746f098
Compare
/try |
Okay, starting a try! I'll update this comment once it's running...\n |
// This should be [`FuncRunState::Killed`] | ||
// but because this is getting bubbled back to the Pinga Job running the | ||
// action, and the error is now embedded in a successful response, | ||
// (because we did get a response from Veritech) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UGH! So sorry about this... that explains a lot.
This change ensures that for all functions types, when errors occur (such as killing a function, or timing out), we inform subscribers of the failure so they can handle them appropriately.
The main issue this fixes is during DVU jobs, if a function times out or is killed, the job will continue to run until it hits its own time out, exacerbating hung change sets
via GIPHY