Changing CreateService to mimic CreateJob by setting the batch size to the instance count.
This commit is contained in:
parent
b8bf774aac
commit
1e6d4a516c
1 changed files with 1 additions and 0 deletions
|
@ -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
|
// Create a new job update object and ship it to the StartJobUpdate api
|
||||||
update := NewUpdateJob(auroraJob.TaskConfig(), &settings.settings)
|
update := NewUpdateJob(auroraJob.TaskConfig(), &settings.settings)
|
||||||
update.InstanceCount(auroraJob.GetInstanceCount())
|
update.InstanceCount(auroraJob.GetInstanceCount())
|
||||||
|
update.BatchSize(auroraJob.GetInstanceCount())
|
||||||
|
|
||||||
resp, err := r.StartJobUpdate(update, "")
|
resp, err := r.StartJobUpdate(update, "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue