Adding MonitorJobUpdateQuery which serves as the basis for other monitors.

This commit is contained in:
Renan DelValle 2019-09-10 18:47:08 -07:00 committed by Renan DelValle
parent 9a70711537
commit 5d75dcc15e
2 changed files with 41 additions and 25 deletions

View file

@ -759,9 +759,7 @@ func (c *Client) PauseJobUpdate(updateKey *aurora.JobUpdateKey, message string)
// Make this call synchronous by blocking until it job has successfully transitioned to aborted
_, err := c.MonitorJobUpdateStatus(*updateKeyLocal,
map[aurora.JobUpdateStatus]bool{
aurora.JobUpdateStatus_ABORTED: true,
},
[]aurora.JobUpdateStatus{aurora.JobUpdateStatus_ABORTED},
time.Second*5,
time.Minute)