Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.markdown
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#### Unreleased
* Don't use a shared closure for each spawned thread
> awilfox: https://github.com/okcomputer-ruby/okcomputer/pull/27
* ActionMailerCheck: Support :sendmail and :test
> awilfox: https://github.com/okcomputer-ruby/okcomputer/pull/21
* Add SolidQueue checks: `SolidQueueCheck` (liveness + job stats),
Expand Down
5 changes: 1 addition & 4 deletions lib/ok_computer/check_collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,7 @@ def check_in_sequence
end

def check_in_parallel
threads = checks.map do |check|
Thread.new { check.run }
end
threads.each(&:join)
checks.map{ |check| Thread.new(check, &:run) }.each(&:join)
end
end
end