Method: Uc::Unicorn::ReadyWait#wait

Defined in:
lib/uc/unicorn/ready_wait.rb

#waitObject



36
37
38
39
40
41
42
43
44
45
46
# File 'lib/uc/unicorn/ready_wait.rb', line 36

def wait
  if first_worker?
    event_stream.debug "no wait for worker #{worker.nr}"
    return
  end
  mq.create
  msg = mq.wait(event, ready_wait)
  event_stream.debug "ack worker ready #{worker.nr}"
rescue Errno::ENOENT, Errno::EAGAIN, Errno::EACCES, Errno::ETIMEDOUT => e
  event_stream.warn "ready wait error #{worker.nr}: #{e.class}"
end