logo       

Re: not aborting on command failure - batching hosts: msg#00153

lang.ruby.capistrano.general

Subject: Re: not aborting on command failure - batching hosts

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
capistrano-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---


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

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise