Class: CI::Queue::Redis::Grind

Inherits:
Worker show all
Defined in:
lib/ci/queue/redis/grind.rb

Constant Summary

Constants inherited from Base

Base::CONNECTION_ERRORS, Base::TEN_MINUTES

Constants included from Common

Common::CONNECTION_ERRORS

Instance Attribute Summary

Attributes inherited from Worker

#total

Attributes included from Common

#config

Instance Method Summary collapse

Methods inherited from Worker

#acknowledge, #distributed?, #initialize, #master?, #poll, #populate, #populated?, #release!, #requeue, #retry_queue, #retrying?, #shutdown!, #shutdown_required?

Methods inherited from Base

#boot_heartbeat_process!, #created_at=, #custom_config, #custom_middlewares, #ensure_heartbeat_thread_alive!, #exhausted?, #expired?, #increment_test_failed, #initialize, #max_test_failed?, #progress, #queue_initialized?, #queue_initializing?, #reconnect_attempts, #remaining, #running, #size, #stop_heartbeat!, #test_failed, #to_a, #wait_for_master, #with_heartbeat, #workers_count

Methods included from Common

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

Constructor Details

This class inherits a constructor from CI::Queue::Redis::Worker

Instance Method Details

#buildObject



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

def build
  @build ||= GrindRecord.new(self, redis, config)
end

#supervisorObject



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

def supervisor
  GrindSupervisor.new(redis_url, config)
end