MCPcopy
hub / github.com/cortexlabs/cortex / DeleteInProgressFile

Function DeleteInProgressFile

pkg/operator/resources/job/cache.go:36–42  ·  view source on GitHub ↗
(jobKey spec.JobKey)

Source from the content-addressed store, hash-verified

34}
35
36func DeleteInProgressFile(jobKey spec.JobKey) error {
37 err := config.AWS.DeleteS3File(config.ClusterConfig.Bucket, inProgressKey(jobKey))
38 if err != nil {
39 return err
40 }
41 return nil
42}
43
44func DeleteAllInProgressFilesByAPI(kind userconfig.Kind, apiName string) error {
45 err := config.AWS.DeleteS3Prefix(config.ClusterConfig.Bucket, allInProgressForAPIKey(kind, apiName), true)

Callers 10

ManageJobResourcesFunction · 0.92
SetFailedStatusFunction · 0.85
SetStoppedStatusFunction · 0.85
SetSucceededStatusFunction · 0.85
SetWorkerErrorStatusFunction · 0.85
SetWorkerOOMStatusFunction · 0.85
SetEnqueueFailedStatusFunction · 0.85
SetUnexpectedErrorStatusFunction · 0.85
SetTimedOutStatusFunction · 0.85

Calls 2

inProgressKeyFunction · 0.85
DeleteS3FileMethod · 0.80

Tested by

no test coverage detected