Sha256: a80ee0aba512ce51a4750b89706c3ad9ef0bab7d6e6bbd84a27ba784b5159b88

Contents?: true

Size: 716 Bytes

Versions: 1

Compression:

Stored size: 716 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'executo'
require 'active_job'
require 'pry'

class LsProcessService < Executo::FeedbackProcessService
  arguments :now

  def perform
    stdout&.each do |line|
      logger.info line
    end
  end
end

Executo.setup do |config|
  config.redis = { url: 'redis://localhost:6379/1' }
  config.active_job_redis = { url: 'redis://localhost:6379/0' }
end

ActiveJob::Base.logger = Executo.config.logger.tagged('ActiveJob')
ActiveJob::Base.logger.level = Logger::WARN

Sidekiq.configure_server do |config|
  config.logger = Executo.config.logger.tagged('Sidekiq')
  config.logger.level = Logger::WARN
  config.redis = { url: 'redis://localhost:6379/0' }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
executo-0.3.12 boot_activejob.rb