Skip to content

Commit

Permalink
feat: ensure poll_interval is an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgz committed Oct 4, 2024
1 parent 5252413 commit 9c83c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/esse/index/indices.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def reindex(body:, wait_for_completion: true, scroll: '30m', poll_interval: 5, *
task = nil
begin
while (task = cluster.api.task(id: task_id))['completed'] == false
sleep poll_interval
sleep poll_interval.to_i
end
rescue Interrupt => e
cluster.api.cancel_task(id: task_id)
Expand Down

0 comments on commit 9c83c59

Please sign in to comment.