Initial support for Thermos and GPU resources.

This commit is contained in:
Renan DelValle 2019-01-07 14:38:08 -08:00
parent afcdaa84b8
commit e13349db26
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
9 changed files with 359 additions and 176 deletions

View file

@ -129,19 +129,19 @@ func newUpdateSettings() *aurora.JobUpdateSettings {
See task.go for further documentation.
*/
func (t *JobUpdate) Environment(env string) *JobUpdate {
t.task.Environment(env)
return t
func (j *JobUpdate) Environment(env string) *JobUpdate {
j.task.Environment(env)
return j
}
func (t *JobUpdate) Role(role string) *JobUpdate {
t.task.Role(role)
return t
func (j *JobUpdate) Role(role string) *JobUpdate {
j.task.Role(role)
return j
}
func (t *JobUpdate) Name(name string) *JobUpdate {
t.task.Name(name)
return t
func (j *JobUpdate) Name(name string) *JobUpdate {
j.task.Name(name)
return j
}
func (j *JobUpdate) ExecutorName(name string) *JobUpdate {
@ -230,3 +230,12 @@ func (j *JobUpdate) Container(container Container) *JobUpdate {
func (j *JobUpdate) JobKey() aurora.JobKey {
return j.task.JobKey()
}
func (j *JobUpdate) ThermosExecutor(thermos ThermosExecutor) *JobUpdate {
j.task.ThermosExecutor(thermos)
return j
}
func (j *JobUpdate) BuildThermosPayload() error {
return j.task.BuildThermosPayload()
}