Changing calls on functions that use JobUpdateKey to reflect change made for memory safety.
This commit is contained in:
parent
4fc4953ec4
commit
235f854087
2 changed files with 7 additions and 3 deletions
|
@ -377,7 +377,7 @@ func main() {
|
|||
|
||||
case "resumeJobUpdate":
|
||||
key := job.JobKey()
|
||||
err := r.ResumeJobUpdate(&aurora.JobUpdateKey{
|
||||
err := r.ResumeJobUpdate(aurora.JobUpdateKey{
|
||||
Job: &key,
|
||||
ID: updateId,
|
||||
}, "")
|
||||
|
@ -388,7 +388,7 @@ func main() {
|
|||
|
||||
case "pulseJobUpdate":
|
||||
key := job.JobKey()
|
||||
resp, err := r.PulseJobUpdate(&aurora.JobUpdateKey{
|
||||
resp, err := r.PulseJobUpdate(aurora.JobUpdateKey{
|
||||
Job: &key,
|
||||
ID: updateId,
|
||||
})
|
||||
|
|
|
@ -365,7 +365,11 @@ pulseLoop:
|
|||
for {
|
||||
select {
|
||||
case <-ticker.C:
|
||||
pulseStatus, err := r.PulseJobUpdate(result.GetKey())
|
||||
if result.GetKey() == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
pulseStatus, err := r.PulseJobUpdate(*result.GetKey())
|
||||
|
||||
assert.Nil(t, err)
|
||||
if pulseStatus != aurora.JobUpdatePulseStatus_OK && pulseStatus != aurora.JobUpdatePulseStatus_FINISHED {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue