Sha256: 61f63130cfda861b92a6463dd77e5aabb7b472253c7ece17c5443c49eb747b97

Contents?: true

Size: 407 Bytes

Versions: 11

Compression:

Stored size: 407 Bytes

Contents

class SiblingInstructionConsumer
  extend HerokuResqueAutoscaler if Rails.env.production?
  @queue = :consumer

  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
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
g5_sibling_deployer_engine-0.7.0 app/workers/sibling_instruction_consumer.rb
g5_sibling_deployer_engine-0.6.3 app/workers/sibling_instruction_consumer.rb
g5_sibling_deployer_engine-0.6.2 app/workers/sibling_instruction_consumer.rb
g5_sibling_deployer_engine-0.6.1 app/workers/sibling_instruction_consumer.rb
g5_sibling_deployer_engine-0.5.0 app/workers/sibling_instruction_consumer.rb
g5_sibling_deployer_engine-0.4.2 app/workers/sibling_instruction_consumer.rb
g5_sibling_deployer_engine-0.4.1 app/workers/sibling_instruction_consumer.rb
g5_sibling_deployer_engine-0.4.0 app/workers/sibling_instruction_consumer.rb
g5_sibling_deployer_engine-0.3.3 app/workers/sibling_instruction_consumer.rb
g5_sibling_deployer_engine-0.3.2 app/workers/sibling_instruction_consumer.rb
g5_sibling_deployer_engine-0.2.6 app/workers/sibling_instruction_consumer.rb