Class: SiblingInstructionConsumer

Inherits:
Object
  • Object
show all
Extended by:
HerokuResqueAutoscaler
Defined in:
app/workers/sibling_instruction_consumer.rb

Class Method Summary collapse

Class Method Details

.performObject



5
6
7
8
9
10
11
12
13
14
# File 'app/workers/sibling_instruction_consumer.rb', line 5

def self.perform
  Rails.logger.info "Starting instruction feed consumption..."

  Sibling::Instruction.consume_feed

  Rails.logger.info "Succeeded consuming instruction feed."
rescue StandardError => e
  Rails.logger.info "Failed consuming instruction feed."
  raise e
end