capistrano / capistrano/sshkit
An exit in parallel execution exits from all hosts
Open
discuss!
new feature
- Dominant language
- Ruby
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
I am using sshkit for parallel execution of commands on several servers. If there is an exit on one of the servers, then the exception is raised and execution on all the servers stops.
As per the my requirements only that host should be skipped continuing other hosts. Can this be achieved with the current code?
Here is an example code
```
require 'sshkit'
require 'sshkit/dsl'
include SSHKit::DSL
hosts = ['user1@example.com', 'user2@example2.com', 'user3@example3.com']
on hosts, in: :parallel do |host|
execute './script.sh'
execute './script_with_exit.sh'
end
```
Contributor guide
Assessment
This issue has not been assessed yet.