Class: CI::Queue::Redis::Retry

Inherits:
Static
  • Object
show all
Defined in:
lib/ci/queue/redis/retry.rb

Constant Summary

Constants inherited from Static

Static::TEN_MINUTES

Constants included from Common

Common::CONNECTION_ERRORS

Instance Attribute Summary

Attributes inherited from Static

#progress, #total

Attributes included from Common

#config

Instance Method Summary collapse

Methods inherited from Static

#acknowledge, #boot_heartbeat_process!, #created_at=, #distributed?, #ensure_heartbeat_thread_alive!, #exhausted?, #expired?, from_uri, #increment_test_failed, #max_test_failed?, #poll, #populate, #populated?, #queue_initialized?, #remaining, #report_worker_error, #requeue, #retry_queue, #running, #shutdown!, #size, #stop_heartbeat!, #supervisor, #test_failed, #to_a, #with_heartbeat

Methods included from Common

#distributed?, #flaky?, #release!, #report_failure!, #report_success!, #rescue_connection_errors, #retrying?

Constructor Details

#initialize(tests, config, redis:) ⇒ Retry

Returns a new instance of Retry.



6
7
8
9
# File 'lib/ci/queue/redis/retry.rb', line 6

def initialize(tests, config, redis:)
  @redis = redis
  super(tests, config)
end

Instance Method Details

#buildObject



11
12
13
# File 'lib/ci/queue/redis/retry.rb', line 11

def build
  @build ||= CI::Queue::Redis::BuildRecord.new(self, redis, config)
end