Skip to content

Commit 8331f63

Browse files
committed
Add comments
Signed-off-by: win5923 <[email protected]>
1 parent a53709f commit 8331f63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kubectl-plugin/pkg/cmd/job/job_submit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ func (options *SubmitJobOptions) Run(ctx context.Context, factory cmdutil.Factor
336336
}
337337
fmt.Printf("Submitted RayJob %s.\n", options.RayJob.GetName())
338338

339-
// Check for events in a goroutine with timeout
340-
// If RayJobDeletionPolicy feature gate is not enabled, throw an error and delete the RayJob
339+
// Continuously checks for Kubernetes events related to the RayJobDeletionPolicy.
340+
// If an event indicates that the RayJobDeletionPolicy feature gate must be enabled, throw an error and delete the RayJob.
341341
go func() {
342342
ticker := time.NewTicker(5 * time.Second)
343343
defer ticker.Stop()

0 commit comments

Comments
 (0)