Sha256: 8d8fc64973e4f0ccea565636ba65c74d8636a1867ada537bc1431224bf7c244d
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 Bytes
Contents
module Hat module Wrapper def initialize logger.debug "Initializing wrapper for #{@worker_id}" @stop_flag = ServerEngine::BlockingFlag.new end def run logger.debug "Starting worker #{@worker_id}" config[:worker].id = @worker_id config[:worker].logger = logger config[:worker].run until @stop_flag.set? do sleep 0.1 end end def stop @stop_flag.set! end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rabbit-hat-0.0.1 | lib/hat/wrapper.rb |