Adding MonitorJobUpdateQuery which serves as the basis for other monitors.
This commit is contained in:
parent
9a70711537
commit
5d75dcc15e
2 changed files with 41 additions and 25 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue