Class: Aidp::Concurrency::Configuration
- Inherits:
-
Object
- Object
- Aidp::Concurrency::Configuration
- Defined in:
- lib/aidp/concurrency.rb
Overview
Default configuration for executors and timeouts
Instance Attribute Summary collapse
-
#default_backoff_base ⇒ Object
Returns the value of attribute default_backoff_base.
-
#default_backoff_max ⇒ Object
Returns the value of attribute default_backoff_max.
-
#default_interval ⇒ Object
Returns the value of attribute default_interval.
-
#default_jitter ⇒ Object
Returns the value of attribute default_jitter.
-
#default_max_attempts ⇒ Object
Returns the value of attribute default_max_attempts.
-
#default_timeout ⇒ Object
Returns the value of attribute default_timeout.
-
#log_long_waits_threshold ⇒ Object
Returns the value of attribute log_long_waits_threshold.
-
#log_retries ⇒ Object
Returns the value of attribute log_retries.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_base ⇒ Object
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_max ⇒ Object
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_interval ⇒ Object
Returns the value of attribute default_interval.
30 31 32 |
# File 'lib/aidp/concurrency.rb', line 30 def default_interval @default_interval end |
#default_jitter ⇒ Object
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_attempts ⇒ Object
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_timeout ⇒ Object
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_threshold ⇒ Object
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_retries ⇒ Object
Returns the value of attribute log_retries.
30 31 32 |
# File 'lib/aidp/concurrency.rb', line 30 def log_retries @log_retries end |