Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #21731 - revert using loop instead of process #351

Merged
merged 1 commit into from
May 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/foreman_remote_execution_core/script_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def run_async(command)
raise('Error initializing command') unless success
end
end
session.loop(0.1) { !run_started? }
session.process(0) { !run_started? }
return true
end

Expand Down Expand Up @@ -330,7 +330,7 @@ def run_sync(command, stdin = nil)
started = true
end
end
session.loop(0.1) { !started }
session.process(0) { !started }
# Closing the channel without sending any data gives us SIGPIPE
channel.close unless stdin.nil?
channel.wait
Expand Down