From 1e6d4a516c62899b03d6674ae4478e4ed6aa63a4 Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Wed, 17 Jan 2018 15:37:55 -0800 Subject: [PATCH] Changing CreateService to mimic CreateJob by setting the batch size to the instance count. --- realis.go | 1 + 1 file changed, 1 insertion(+) diff --git a/realis.go b/realis.go index a1669c6..aa29516 100644 --- a/realis.go +++ b/realis.go @@ -622,6 +622,7 @@ func (r *realisClient) CreateService(auroraJob Job, settings UpdateSettings) (*a // Create a new job update object and ship it to the StartJobUpdate api update := NewUpdateJob(auroraJob.TaskConfig(), &settings.settings) update.InstanceCount(auroraJob.GetInstanceCount()) + update.BatchSize(auroraJob.GetInstanceCount()) resp, err := r.StartJobUpdate(update, "") if err != nil {