Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

An exit in parallel execution exits from all hosts

Open
#384 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
ruby
Domain
devops

Research direction

Start with the parallel execution path used by on hosts, in: :parallel and reproduce the example with commands that exit on one host. Done means an exit on one host skips only that host while execution continues on the others; the payload names no specific files or tests.

Written by the indexing model from the issue text.

Description

discuss! new feature

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
Dominant language
Ruby
Stars
1.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from capistrano/sshkit

All issues in capistrano/sshkit

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.