Skip to content

Commit

Permalink
Evict pod and decrease process forks if pod is restarted after except…
Browse files Browse the repository at this point in the history
…ion (#2787)

Signed-off-by: Lehmann-Fabian <fabian.lehmann@informatik.hu-berlin.de>

Co-authored-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
Lehmann-Fabian and pditommaso committed Apr 23, 2022
1 parent 111cc31 commit 05ea0c8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,9 @@ class TaskPollingMonitor implements TaskMonitor {
final protected void handleException( TaskHandler handler, Throwable error ) {
def fault = null
try {
if (evict(handler)) {
handler.decProcessForks()
}
fault = handler.task.processor.resumeOrDie(handler?.task, error)
}
finally {
Expand Down

0 comments on commit 05ea0c8

Please sign in to comment.