Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
giladshanan committed May 9, 2024
1 parent 20d8519 commit 5482dfb
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -40,7 +40,7 @@ def synchronize
def api_unavailable?
retries = 0
begin
# Test API responses for 10 random users
# Test API responses for `batch_size` random users
users.sample(batch_size).map do |user|
puts "Testing user: #{user.email}"
response_is_invalid = api_client.invalid_response?(user.email)
Expand Down Expand Up @@ -74,8 +74,9 @@ def fetch_user_certs
puts batch_size
total_batches = users.size / batch_size
puts "#{total_batches} batches to be processed"
batch_number = 1
batch_number = 0
users.in_batches(of: batch_size) do |user_batch|
batch_number += 1
puts "starting batch #{batch_number} of #{total_batches}"
sleep(batch_sleep_time)

Expand Down

0 comments on commit 5482dfb

Please sign in to comment.