Changing calls on functions that use JobUpdateKey to reflect change made for memory safety.

This commit is contained in:
Renan DelValle 2019-09-25 16:20:55 -07:00 committed by Renan DelValle
parent 4fc4953ec4
commit 235f854087
2 changed files with 7 additions and 3 deletions

View file

@ -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 {