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

Function SetEnqueueFailedStatus

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

Source from the content-addressed store, hash-verified

419}
420
421func SetEnqueueFailedStatus(jobKey spec.JobKey) error {
422 err := config.AWS.UploadStringToS3("", config.ClusterConfig.Bucket, path.Join(jobKey.Prefix(config.ClusterConfig.ClusterUID), status.JobEnqueueFailed.String()))
423 if err != nil {
424 return err
425 }
426
427 err = DeleteInProgressFile(jobKey)
428 if err != nil {
429 return err
430 }
431
432 return nil
433}
434
435func SetUnexpectedErrorStatus(jobKey spec.JobKey) error {
436 err := config.AWS.UploadStringToS3("", config.ClusterConfig.Bucket, path.Join(jobKey.Prefix(config.ClusterConfig.ClusterUID), status.JobUnexpectedError.String()))

Callers 1

SetStatusForJobFunction · 0.85

Calls 4

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

Tested by

no test coverage detected