Skip to content

Commit

Permalink
Replace hard coded time duration with config param in coscheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuan Chen committed Jun 20, 2022
1 parent 9f31d23 commit 5f2a45c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/coscheduling/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (pgMgr *PodGroupManager) PreFilter(ctx context.Context, pod *corev1.Pod) er
return nil
}
if _, ok := pgMgr.lastDeniedPG.Get(pgFullName); ok {
return fmt.Errorf("pod with pgName: %v last failed in 3s, deny", pgFullName)
return fmt.Errorf("pod with pgName: %v last failed in %v, deny", pgFullName, *pgMgr.lastDeniedPGExpirationTime)
}
pods, err := pgMgr.podLister.Pods(pod.Namespace).List(
labels.SelectorFromSet(labels.Set{v1alpha1.PodGroupLabel: util.GetPodGroupLabel(pod)}),
Expand Down

0 comments on commit 5f2a45c

Please sign in to comment.