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:
parent
005980fc44
commit
e1906542a6
3 changed files with 124 additions and 103 deletions
4
job.go
4
job.go
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue