Sha256: c22fa9a7696d431415eff28c0767b32771c15768d8e46da4757beba934f83a27

Contents?: true

Size: 469 Bytes

Versions: 6

Compression:

Stored size: 469 Bytes

Contents

module Evrone
  module CI
    module Worker

      LogJob = Struct.new(:app) do

        include Helper::Logger

        def call(env)
          matrix_key = env.job.message.matrix_keys.join(" ")

          logger.tagged("JOB #{env.job.message.id}.#{env.job.message.job_id} #{matrix_key}") do
            logger.info "starting job"
            rs = app.call env
            logger.info "done job"
            rs
          end
        end

      end
    end
  end
end


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
evrone-ci-worker-0.2.0.pre6 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre5 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre4 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre3 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre1 lib/evrone/ci/worker/middlewares/log_job.rb
evrone-ci-worker-0.2.0.pre0 lib/evrone/ci/worker/middlewares/log_job.rb