Thanks guys. SSHKit looks very promising. Though, since we do all of our deployments using capistrano and there is a function to execute a remote command, it is much easier for us to handle this in capistrano, as the IP list and all the other configuration already exist for this.
We ended up doing it with this task. It works for now, but it is a bit hacky. We add this into our deployment scripts. https://gist.github.com/serdarsahin/5084440 This is the command to execute; cap -f /path/to/Capfile production cron -s cmd="uptime" We'll be looking more into the SSHKit to do more things. Thanks.. On Saturday, March 2, 2013 4:49:15 AM UTC+2, dbray wrote: > > I don't use cap/Jenkins for this but I do use it to do deploys. > > I prefer using resque or delayed_jobs for Ruby apps. I'm sure other > languages have similar async frameworks. > > On Mar 1, 2013, at 12:24 PM, Serdar Sahin <[email protected] <javascript:>> > 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]<javascript:> > * To unsubscribe from this group, send email to > [email protected] <javascript:> 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] <javascript:>. > 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.
