Sha256: d9f10755ad9e5b85a856bf0dfdd19fbce31edbc14054134d85ffd4abaa6dd7f8

Contents?: true

Size: 368 Bytes

Versions: 11

Compression:

Stored size: 368 Bytes

Contents

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

  def self.perform
    Rails.logger.info "Starting sibling consumption..."

    Sibling.consume_main_app_hcard

    Rails.logger.info "Succeeded consuming siblings."
  rescue StandardError => e
    Rails.logger.info "Failed consuming siblings."
    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_consumer.rb
g5_sibling_deployer_engine-0.6.3 app/workers/sibling_consumer.rb
g5_sibling_deployer_engine-0.6.2 app/workers/sibling_consumer.rb
g5_sibling_deployer_engine-0.6.1 app/workers/sibling_consumer.rb
g5_sibling_deployer_engine-0.5.0 app/workers/sibling_consumer.rb
g5_sibling_deployer_engine-0.4.2 app/workers/sibling_consumer.rb
g5_sibling_deployer_engine-0.4.1 app/workers/sibling_consumer.rb
g5_sibling_deployer_engine-0.4.0 app/workers/sibling_consumer.rb
g5_sibling_deployer_engine-0.3.3 app/workers/sibling_consumer.rb
g5_sibling_deployer_engine-0.3.2 app/workers/sibling_consumer.rb
g5_sibling_deployer_engine-0.2.6 app/workers/sibling_consumer.rb