mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Issue #18721: introduce longer period for lost pod polling
This commit is contained in:
parent
7eda961ada
commit
b35aec769b
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user