Skip to content

Commit

Permalink
Use refresher_options for chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Dec 6, 2018
1 parent 323fdcf commit 09b1bac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def fetch_entities(client, entities)

begin
loop do
entities = client.send("get_#{entity[:name]}", :limit => 1_000, :continue => continue)
entities = client.send("get_#{entity[:name]}", :limit => refresher_options.chunk_size, :continue => continue)
h[entity[:name].singularize].concat(entities)
break if entities.last?
end
Expand Down
1 change: 1 addition & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
:kubernetes:
:refresh_interval: 15.minutes
:streaming_refresh: false
:chunk_size: 1_000
:inventory_object_refresh: true
:inventory_collections:
:saver_strategy: batch
Expand Down

0 comments on commit 09b1bac

Please sign in to comment.