Adding auto pause after batch support (#102)
* Adding support for auto pause after batch and modifying the update status monitor to automatically multiply values below a second by a second.
This commit is contained in:
parent
d0866b98bc
commit
682cfd931b
4 changed files with 148 additions and 0 deletions
|
@ -81,6 +81,15 @@ func (m *Monitor) JobUpdateStatus(
|
|||
interval time.Duration,
|
||||
timeout time.Duration) (aurora.JobUpdateStatus, error) {
|
||||
|
||||
// Minimal unit is the second, if it's below a second, multiply input by seconds
|
||||
if interval < 1*time.Second {
|
||||
interval *= time.Second
|
||||
}
|
||||
|
||||
if timeout < 1*time.Second {
|
||||
timeout *= time.Second
|
||||
}
|
||||
|
||||
desiredStatusesSlice := make([]aurora.JobUpdateStatus, 0)
|
||||
|
||||
for k := range desiredStatuses {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue