Commit b35aec76 authored by Mike Spreitzer's avatar Mike Spreitzer

Issue #18721: introduce longer period for lost pod polling

parent 7eda961a
...@@ -49,6 +49,7 @@ import ( ...@@ -49,6 +49,7 @@ import (
const ( const (
containerPollTime = 1 * time.Second containerPollTime = 1 * time.Second
lostPodPollTime = 1 * time.Minute
podRelistPeriod = 5 * time.Minute podRelistPeriod = 5 * time.Minute
) )
...@@ -656,7 +657,7 @@ func (k *Executor) __launchTask(driver bindings.ExecutorDriver, taskId, podFullN ...@@ -656,7 +657,7 @@ func (k *Executor) __launchTask(driver bindings.ExecutorDriver, taskId, podFullN
// Wait for the pod to go away and stop monitoring once it does // Wait for the pod to go away and stop monitoring once it does
// TODO (jdefelice) replace with an /events watch? // TODO (jdefelice) replace with an /events watch?
for { for {
time.Sleep(containerPollTime) time.Sleep(lostPodPollTime)
if k.checkForLostPodTask(driver, taskId, knownPod) { if k.checkForLostPodTask(driver, taskId, knownPod) {
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment