Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

controller cache deletePod #4064

Open
feyounger opened this issue Mar 7, 2025 · 0 comments
Open

controller cache deletePod #4064

feyounger opened this issue Mar 7, 2025 · 0 comments
Labels
kind/question Categorizes issue related to a new question

Comments

@feyounger
Copy link
Contributor

Please describe your problem in detail

Why can't I find a job in deletepod and still need to create one? I think we can directly skip.
Location of code is https://github.com/volcano-sh/volcano/tree/master/pkg/controllers/cache/cache.go

	job, found := jc.jobs[key]
	if !found {
		job = &apis.JobInfo{
			Pods: make(map[string]map[string]*v1.Pod),
		}
		jc.jobs[key] = job
	}

Any other relevant information

i think so

if job, found := jc.jobs[key]; found {
		if err := job.DeletePod(pod); err != nil {
			return err
		}
		if jobTerminated(job) {
			jc.deleteJob(job)
		}
	}
@feyounger feyounger added the kind/question Categorizes issue related to a new question label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Categorizes issue related to a new question
Projects
None yet
Development

No branches or pull requests

1 participant