Exception: Chef::Exceptions::RunLockTimeout

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/chef/exceptions.rb

Overview

Raised when Chef::Config[:run_lock_timeout] is set and some other client run fails to release the run lock becure Chef::Config[:run_lock_timeout] seconds pass.

Instance Method Summary collapse

Constructor Details

#initialize(duration, blocking_pid) ⇒ RunLockTimeout

Returns a new instance of RunLockTimeout


417
418
419
# File 'lib/chef/exceptions.rb', line 417

def initialize(duration, blocking_pid)
  super "Unable to acquire lock. Waited #{duration} seconds for #{blocking_pid} to release."
end