Sha256: 4c926c05b81bbdec1e92ce116e8ae29e02ab7edb1e91a0c9cd847cdbfe57683c

Contents?: true

Size: 560 Bytes

Versions: 5

Compression:

Stored size: 560 Bytes

Contents

module Oxidized
  class Job < Thread
    attr_reader :start, :end, :status, :time, :node, :config

    def initialize(node)
      @node         = node
      @start        = Time.now.utc
      super do
        Oxidized.logger.debug "lib/oxidized/job.rb: Starting fetching process for #{@node.name} at #{Time.now.utc}"
        @status, @config = @node.run
        @end             = Time.now.utc
        @time            = @end - @start
        Oxidized.logger.debug "lib/oxidized/job.rb: Config fetched for #{@node.name} at #{@end}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oxidized-0.31.0 lib/oxidized/job.rb
oxidized-0.30.1 lib/oxidized/job.rb
oxidized-0.30.0 lib/oxidized/job.rb
oxidized-0.29.1 lib/oxidized/job.rb
oxidized-0.29.0 lib/oxidized/job.rb