Unless Capistrano is a key piece of what you are trying to do, you might be better off with a lower level tool: https://github.com/wacku/sshkit will more than likely be the backend for the next major release of Cap, and can be scripted in a more familiar way (read, you won't have to jump hoops to meet the existing Cap DSL) it's just plain Ruby. See the EXAMPLES.md file in the repository for a bunch of common use-cases.
Failing that, please post back, and someone will be happy to help you getting Cap baked in. Lee Hambley -- http://lee.hambley.name/ +49 (0) 170 298 5667 On 1 March 2013 21:24, Serdar Sahin <[email protected]> wrote: > Hi, > > We have number of long running cron jobs and need to execute these jobs > locally in the server, as our LB timeouts them. For other jobs we use HTTP > based jobs and manage them in the jenkins. > > Since we also want to manage these jobs in the Jenkins for debugging and > management purposes and provide HA for these jobs, we would like to utilise > capistrano's invoke command to choose one of the running servers and > execute the command locally. > > Is there any easy way to choose one of the web servers and try to invoke > command only in that server, and if that fails move to the second one, up > until the hard limit we define. (e.g. after 5 servers it should fail) > > Thanks in advance, > > > > -- > -- > * You received this message because you are subscribed to the Google > Groups "Capistrano" group. > * To post to this group, send email to [email protected] > * To unsubscribe from this group, send email to > [email protected] For more options, visit this > group at http://groups.google.com/group/capistrano?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Capistrano" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to [email protected] * To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano?hl=en --- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
