def stop_workers(force = false)
      # Set shutdown flag
      logger.info("Stopping workers#{force ? ' (forced)' : ''}...")

      # Termination loop
      @worker_pools.values.each do |pool|
        pool.stop_workers(force)
      end
    end
def stop_workers(force = false)
      # Set shutdown flag
      logger.info("Stopping workers#{force ? ' (forced)' : ''}...")

      # Termination loop
      @worker_pools.values.each do |pool|
        pool.stop_workers(force)
      end
    end
-----------------------------------------------------------------------------------------------