Yes, you can do:

task :foo, :roles => %w(whatever), :on_error => :continue do
  run "something that might fail"
end

The :on_error => :continue bit tells capistrano to continue on to the next task, even if the command fails for any of the servers.

As for running commands on N hosts at a time, that's what Capistrano is all about. Just describe the hosts in roles, and then specify those roles in the :roles parameter when defining the task. Or, you can use the :hosts parameter and just give it an array of servers directly.

- Jamis

On Dec 19, 2007, at 3:14 PM, Joshua Sierles wrote:


Hello,

Is it possible to run a set of commands across a large number of hosts
but continue the process should an error occur (while still logging
the error)?

Is it possible to run commands on N hosts at a time?

Thanks!

Joshua Sierles

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to