Adding JobUpdateStatus monitor as well as renaming all monitor functions to be Monitor + <subject>
This commit is contained in:
parent
04471c6918
commit
6f20f5b62f
4 changed files with 71 additions and 29 deletions
|
@ -208,7 +208,7 @@ func main() {
|
|||
fmt.Println("Error creating Aurora job: ", jobCreationErr)
|
||||
os.Exit(1)
|
||||
} else {
|
||||
if ok, monitorErr := r.InstancesMonitor(auroraJob.JobKey(), auroraJob.GetInstanceCount(), 5, 50); !ok || monitorErr != nil {
|
||||
if ok, monitorErr := r.MonitorInstances(auroraJob.JobKey(), auroraJob.GetInstanceCount(), 5, 50); !ok || monitorErr != nil {
|
||||
if jobErr := r.KillJob(auroraJob.JobKey()); jobErr !=
|
||||
nil {
|
||||
fmt.Println(jobErr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue