Class: Aidp::Concurrency::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/aidp/concurrency.rb

Overview

Default configuration for executors and timeouts

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



34
35
36
37
38
39
40
41
42
43
# File 'lib/aidp/concurrency.rb', line 34

def initialize
  @default_timeout = 30.0
  @default_interval = 0.2
  @default_max_attempts = 5
  @default_backoff_base = 0.5
  @default_backoff_max = 30.0
  @default_jitter = 0.2
  @log_long_waits_threshold = 5.0 # Log if wait takes > 5s
  @log_retries = true
end

Instance Attribute Details

#default_backoff_baseObject

Returns the value of attribute default_backoff_base.



30
31
32
# File 'lib/aidp/concurrency.rb', line 30

def default_backoff_base
  @default_backoff_base
end

#default_backoff_maxObject

Returns the value of attribute default_backoff_max.



30
31
32
# File 'lib/aidp/concurrency.rb', line 30

def default_backoff_max
  @default_backoff_max
end

#default_intervalObject

Returns the value of attribute default_interval.



30
31
32
# File 'lib/aidp/concurrency.rb', line 30

def default_interval
  @default_interval
end

#default_jitterObject

Returns the value of attribute default_jitter.



30
31
32
# File 'lib/aidp/concurrency.rb', line 30

def default_jitter
  @default_jitter
end

#default_max_attemptsObject

Returns the value of attribute default_max_attempts.



30
31
32
# File 'lib/aidp/concurrency.rb', line 30

def default_max_attempts
  @default_max_attempts
end

#default_timeoutObject

Returns the value of attribute default_timeout.



30
31
32
# File 'lib/aidp/concurrency.rb', line 30

def default_timeout
  @default_timeout
end

#log_long_waits_thresholdObject

Returns the value of attribute log_long_waits_threshold.



30
31
32
# File 'lib/aidp/concurrency.rb', line 30

def log_long_waits_threshold
  @log_long_waits_threshold
end

#log_retriesObject

Returns the value of attribute log_retries.



30
31
32
# File 'lib/aidp/concurrency.rb', line 30

def log_retries
  @log_retries
end