You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: terminating.go
    path of file: ./repos/volcano/pkg/controllers/job/state
    
    the code of the file until where you have to start completion: /*
Copyright 2017 The Volcano Authors.

Licensed under the Apache Li
    
func (ps *terminatingState) Execute(action v1alpha1.Action) error {
	return KillJob(ps.job, PodRetainPhaseSoft, func(status *vcbatch.JobStatus) bool {
		// If any "alive" pods, still in Terminating phase
		if status.Terminating != 0 || status.Pending != 0 || status.Running != 0 {
			return false
		}
		status.State.Phase = vcbatch.Terminated
		return true
	})
}