mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +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 (
|
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
|
|||||||
// 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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user