Sha256: 6143addf55dea02677394cb9a65f4edf725c911b2254c7e1929558e68569db0f
Contents?: true
Size: 340 Bytes
Versions: 21
Compression:
Stored size: 340 Bytes
Contents
namespace :redis_rate_limits do desc "Test rate limits via redis" task test: :environment do emails = (1..3).map { |i| "redis_app#{i}@hubspot.com" } Parallel.map((1..10).to_a, in_processes: 10) do |process| 20.times do Resque.enqueue(RedisRateLimitsWorker, emails, ENV['access_token']) end end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
hubspot-api-client-2.0.0 | sample-apps/rate-limits-redis-sample-app/lib/tasks/redis_rate_limits.rake |