MCPcopy Index your code
hub / github.com/cortexlabs/cortex / DeleteAllInProgressFilesByAPI

Function DeleteAllInProgressFilesByAPI

pkg/operator/resources/job/cache.go:44–50  ·  view source on GitHub ↗
(kind userconfig.Kind, apiName string)

Source from the content-addressed store, hash-verified

42}
43
44func DeleteAllInProgressFilesByAPI(kind userconfig.Kind, apiName string) error {
45 err := config.AWS.DeleteS3Prefix(config.ClusterConfig.Bucket, allInProgressForAPIKey(kind, apiName), true)
46 if err != nil {
47 return err
48 }
49 return nil
50}
51
52func listAllInProgressJobKeysByAPI(kind userconfig.Kind, apiName *string) ([]spec.JobKey, error) {
53 _, ok := _jobKinds[kind]

Callers 1

deleteS3ResourcesFunction · 0.92

Calls 2

allInProgressForAPIKeyFunction · 0.85
DeleteS3PrefixMethod · 0.80

Tested by

no test coverage detected