MCPcopy Create free account
hub / github.com/NVIDIA/nvcf / runTaskDelete

Function runTaskDelete

src/clis/nvcf-cli/cmd/task.go:950–981  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

948 fmt.Printf(" Backend: %s\n", t.GpuSpecification.Backend)
949 }
950 if len(t.GpuSpecification.Clusters) > 0 {
951 fmt.Printf(" Clusters: %v\n", t.GpuSpecification.Clusters)
952 }
953 }
954 if t.ContainerImage != "" {
955 fmt.Println("\nContainer:")
956 fmt.Printf(" Image: %s\n", t.ContainerImage)
957 if t.ContainerArgs != "" {
958 fmt.Printf(" Args: %s\n", t.ContainerArgs)
959 }
960 for _, env := range t.ContainerEnvironment {
961 fmt.Printf(" Env: %s=%s\n", env.Key, env.Value)
962 }
963 }
964 if len(t.Tags) > 0 {
965 fmt.Printf("\nTags: %s\n", strings.Join(t.Tags, ", "))
966 }
967 if len(t.Secrets) > 0 {
968 fmt.Printf("\nSecret keys: %s\n", strings.Join(t.Secrets, ", "))
969 }
970 if t.ResultHandlingStrategy != "" {
971 fmt.Printf("\nResult Strategy: %s\n", t.ResultHandlingStrategy)
972 if t.ResultsLocation != "" {
973 fmt.Printf("Results Location: %s\n", t.ResultsLocation)
974 }
975 }
976 if len(t.Instances) > 0 {
977 fmt.Printf("\nInstances (%d):\n", len(t.Instances))
978 for _, inst := range t.Instances {
979 fmt.Printf(" - %s [%s] %s @ %s/%s\n", inst.InstanceID, inst.InstanceState, inst.InstanceType, inst.Backend, inst.Location)
980 }
981 }
982 return nil
983}
984

Callers

nothing calls this directly

Calls 13

CloseMethod · 0.95
DeleteTaskMethod · 0.95
resolveTaskIDFunction · 0.85
GetCurrentStateFunction · 0.85
NewClientMethod · 0.80
SuccessMethod · 0.80
ClearTaskMethod · 0.80
WarningMethod · 0.80
ErrorfMethod · 0.45

Tested by

no test coverage detected