Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 20 lines (17 sloc) 0.463 kb
#!/usr/bin/env ruby
#
# Used as an example of preloading in Einhorn blog post
# (https://stripe.com/blog/meet-einhorn). Program name ends in .rb in
# order to make explicit that it's written in Ruby, though this isn't
# actually necessary for preloading to work.
#
# Run as
#
# einhorn -p ./pool_worker.rb ./pool_worker.rb
puts "From PID #{$$}: loading #{__FILE__}"
def einhorn_main
while true
puts "From PID #{$$}: Doing some work"
sleep 1
end
end
Jump to Line
Something went wrong with that request. Please try again.