Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add app code for simple worker to test worker lifecycle

  • Loading branch information...
commit 9d88f7f0e3db1be5d2d5846fbfeb7b94ee988182 1 parent d97c718
Dmitriy Kalinin and Mark Rushakoff authored
View
1  lifecycle/worker/Gemfile
@@ -0,0 +1 @@
+source "https://rubygems.org"
View
8 lifecycle/worker/Gemfile.lock
@@ -0,0 +1,8 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
View
11 lifecycle/worker/main.rb
@@ -0,0 +1,11 @@
+[5, 10, 15, 20].each do |total|
+ sleep(5)
+ $stdout.puts "running for #{total} secs"
+ $stdout.flush
+end
+
+while true
+ sleep(10)
+ $stdout.puts "still running..."
+ $stdout.flush
+end
Please sign in to comment.
Something went wrong with that request. Please try again.