(jobKey spec.JobKey)
| 67 | } |
| 68 | |
| 69 | func DownloadTaskJobSpec(jobKey spec.JobKey) (*spec.TaskJob, error) { |
| 70 | jobSpec := spec.TaskJob{} |
| 71 | if err := config.AWS.ReadJSONFromS3(&jobSpec, config.ClusterConfig.Bucket, jobKey.SpecFilePath(config.ClusterConfig.ClusterUID)); err != nil { |
| 72 | return nil, errors.Wrap(err, "unable to download job specification", jobKey.UserString()) |
| 73 | } |
| 74 | return &jobSpec, nil |
| 75 | } |
no test coverage detected