lib/chef-workflow/support/scheduler.rb
#
# Instructs the scheduler to stop. Note that this is not an interrupt, and
# the queue will still be exhausted before terminating.
#
Instructs the scheduler to stop. Note that this is not an interrupt, and
the queue will still be exhausted before terminating.
Instructs the scheduler to stop . Note that this is not an interrupt and the queue will still be exhausted before terminating .
def stop
    if @serial
      @queue << nil
    else
      @working.values.map { |v| v.join rescue nil }
      @queue << nil
      @solver_thread.join rescue nil
    end
  end
def stop if @serial @queue << nil else @working . values . map { | v | v . join rescue nil } @queue << nil @solver_thread . join rescue nil end end
Instructs the scheduler to stop.
Instructs the scheduler to stop .