module CI::Queue::Common
Constants
- CONNECTION_ERRORS
to override in classes including this module
Attributes
config[R]
Public Instance Methods
flaky?(test)
click to toggle source
# File lib/ci/queue/common.rb, line 14 def flaky?(test) @config.flaky?(test) end
report_failure!()
click to toggle source
# File lib/ci/queue/common.rb, line 18 def report_failure! config.circuit_breakers.each(&:report_failure!) end
report_success!()
click to toggle source
# File lib/ci/queue/common.rb, line 22 def report_success! config.circuit_breakers.each(&:report_success!) end
rescue_connection_errors(handler = ->(err) { nil } { || ... }
click to toggle source
# File lib/ci/queue/common.rb, line 26 def rescue_connection_errors(handler = ->(err) { nil }) yield rescue *self::class::CONNECTION_ERRORS => err handler.call(err) end
retrying?()
click to toggle source
# File lib/ci/queue/common.rb, line 10 def retrying? false end