I guess this is more of a design question, but I’m trying to use
Parallel to spawn 10 threads of the same process.
trunk = cat pools
trunk.each do |pool|
Parallel.each(["#{pool}"], :in_threads=>10) { |k| rsync -av user@machine:/#{k} /mnt/backup/#{k} }
end
I may be doing this all wrong, but currently I only see one thread
running (am I doing something wrong, or am I incorrect in my
understanding of threading?)