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

Function SetTimedOutStatus

pkg/operator/resources/job/state.go:449–461  ·  view source on GitHub ↗
(jobKey spec.JobKey)

Source from the content-addressed store, hash-verified

447}
448
449func SetTimedOutStatus(jobKey spec.JobKey) error {
450 err := config.AWS.UploadStringToS3("", config.ClusterConfig.Bucket, path.Join(jobKey.Prefix(config.ClusterConfig.ClusterUID), status.JobTimedOut.String()))
451 if err != nil {
452 return err
453 }
454
455 err = DeleteInProgressFile(jobKey)
456 if err != nil {
457 return err
458 }
459
460 return nil
461}

Callers 2

ManageJobResourcesFunction · 0.92
SetStatusForJobFunction · 0.85

Calls 4

DeleteInProgressFileFunction · 0.85
UploadStringToS3Method · 0.80
PrefixMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected