Skip to content

Commit

Permalink
chore: Fix minor comment issues
Browse files Browse the repository at this point in the history
Signed-off-by: wuyanping <wuyanping@uniontech.com>
  • Loading branch information
Yanping-io committed Dec 24, 2024
1 parent b0c1a56 commit 54dcb15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/scheduler/actions/allocate/allocate.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (alloc *Action) Execute(ssn *framework.Session) {
func (alloc *Action) pickUpQueuesAndJobs(queues *util.PriorityQueue, jobsMap map[api.QueueID]*util.PriorityQueue) {
ssn := alloc.session
for _, job := range ssn.Jobs {
// If not config enqueue action, change Pending pg into Inqueue statue to avoid blocking job scheduling.
// If not config enqueue action, change Pending pg into Inqueue state to avoid blocking job scheduling.
if job.IsPending() {
if conf.EnabledActionMap["enqueue"] {
klog.V(4).Infof("Job <%s/%s> Queue <%s> skip allocate, reason: job status is pending.",
Expand Down
2 changes: 1 addition & 1 deletion pkg/webhooks/admission/jobs/mutate/mutate_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func patchDefaultPlugins(job *v1alpha1.Job) *patchOperation {
plugins[k] = v
}

// Because the tensorflow-plugin and mpi-plugin depends on svc-plugin.
// Because the tensorflow-plugin, mpi-plugin and pytorch-plugin depend on svc-plugin.
// If the svc-plugin is not defined, we should add it.
_, hasTf := job.Spec.Plugins[tensorflow.TFPluginName]
_, hasMPI := job.Spec.Plugins[mpi.MPIPluginName]
Expand Down

0 comments on commit 54dcb15

Please sign in to comment.