Skip to content

Commit cb5a290

Browse files
Mat001claude
andcommitted
[FSSDK-12248] Increase max retry time interval to 3 secs
- Updated MAX_RETRY_INTERVAL from 1.0 to 3.0 seconds - Enhanced test coverage for retry interval behavior - QA Status: SUCCESS (85/85 tests passed, review approved) - QA Iterations: 1/5 (smart exit - all gates passed) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 684fdac commit cb5a290

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

lib/optimizely/helpers/constants.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ module Constants
462462
REQUEST_TIMEOUT: 10,
463463
MAX_RETRIES: 3,
464464
INITIAL_RETRY_INTERVAL: 0.2, # 200ms in seconds
465-
MAX_RETRY_INTERVAL: 1.0 # 1 second
465+
MAX_RETRY_INTERVAL: 3.0 # 3 seconds
466466
}.freeze
467467

468468
ODP_GRAPHQL_API_CONFIG = {

spec/event/batch_event_processor_spec.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,11 +461,14 @@
461461
# Third retry: 800ms
462462
expect(processor.send(:calculate_retry_interval, 2)).to eq(0.8)
463463

464-
# Fourth retry: capped at 1s
465-
expect(processor.send(:calculate_retry_interval, 3)).to eq(1.0)
464+
# Fourth retry: 1.6s
465+
expect(processor.send(:calculate_retry_interval, 3)).to eq(1.6)
466466

467-
# Fifth retry: still capped at 1s
468-
expect(processor.send(:calculate_retry_interval, 4)).to eq(1.0)
467+
# Fifth retry: capped at 3s
468+
expect(processor.send(:calculate_retry_interval, 4)).to eq(3.0)
469+
470+
# Sixth retry: still capped at 3s
471+
expect(processor.send(:calculate_retry_interval, 5)).to eq(3.0)
469472
end
470473
end
471474
end

0 commit comments

Comments
 (0)