Issue #18721: introduce longer period for lost pod polling

This commit is contained in:
Mike Spreitzer 2015-12-18 15:20:06 -05:00
parent 7eda961ada
commit b35aec769b

View File

@ -49,6 +49,7 @@ import (
const (
containerPollTime = 1 * time.Second
lostPodPollTime = 1 * time.Minute
podRelistPeriod = 5 * time.Minute
)
@ -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
// TODO (jdefelice) replace with an /events watch?
for {
time.Sleep(containerPollTime)
time.Sleep(lostPodPollTime)
if k.checkForLostPodTask(driver, taskId, knownPod) {
return
}