Allowing task and job to return job keys. Job keys are now passed around as concrete types (not pointers) due to the possiblity of side effects being cause if pointers to job keys inside of another struct are passed around. Cloning now uses the TaskFromThrift method to do a deep copy of an AuroraTask.

This commit is contained in:
Renan DelValle 2018-12-12 14:01:26 -08:00
parent 005980fc44
commit e1906542a6
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
3 changed files with 124 additions and 103 deletions

4
job.go
View file

@ -91,8 +91,8 @@ func (j *AuroraJob) GetInstanceCount() int32 {
}
// Get the current job configurations key to use for some realis calls.
func (j *AuroraJob) JobKey() *aurora.JobKey {
return j.jobConfig.Key
func (j *AuroraJob) JobKey() aurora.JobKey {
return *j.jobConfig.Key
}
// Get the current job configurations key to use for some realis calls.