Skip to content

Commit dfe0698

Browse files
authored
Actually increment attempt counter in watch loop (#226)
We can't have exponential backoff if there's no base increase ;) We should probably try to figure out a good way to write some tests for these infinite loop threads
1 parent 7cdbb61 commit dfe0698

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

task_processing/plugins/kubernetes/kubernetes_pod_executor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ def _pod_event_watch_loop(
223223
backoff_time,
224224
retry_attempt,
225225
)
226+
retry_attempt += 1
226227
time.sleep(backoff_time)
227228

228229
except Exception:

0 commit comments

Comments
 (0)