(jobKey spec.JobKey)
| 419 | } |
| 420 | |
| 421 | func 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 | |
| 435 | func SetUnexpectedErrorStatus(jobKey spec.JobKey) error { |
| 436 | err := config.AWS.UploadStringToS3("", config.ClusterConfig.Bucket, path.Join(jobKey.Prefix(config.ClusterConfig.ClusterUID), status.JobUnexpectedError.String())) |
no test coverage detected