Conditionally raise when lease cannot be obtained in LogExecutionService
What does this MR do and why?
This MR conditionally raises when a lease cannot be obtained in LogExecutionService
.
When we fail to obtain a lease, only allow the error to be raised if the hook's failure state needs to be updated. This will have the effect that the worker that calls the service will only retry when it needs to.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #352245 (closed)
Edited by Luke Duncalfe