Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Using new worker file format.

  • Loading branch information...
commit 80ed0ca84c75ce23370c6071926d1937cf6aa777 1 parent eb9d12d
@treeder treeder authored
5 ruby_ng/hello_worker/
@@ -2,8 +2,7 @@
This is the simplest example you can find and is a great place to start. It simply logs some output to the worker log.
-1. Be sure you've done your one time configuration
-2. Run `iron_worker codes.create -n HelloWorker`
+1. Be sure you've setup your .iron.json file.
+2. Run `iron_worker codes.create -n hello`
3. Run `ruby enqueue.rb`
4. Look at [HUD]( to view your tasks running, check logs, etc.
10 ruby_ng/hello_worker/enqueue.rb
@@ -4,6 +4,12 @@
client =
# Now create/queue a task for the worker
-client.tasks.create('HelloWorker', 'some_param' => 'some_value', 'other_param' => [1, 2, 3])
+task = client.tasks.create('hello', 'some_param' => 'some_value', 'other_param' => [1, 2, 3])
-puts "Your task has been queued up, check to see your task status and log."
+puts "Your task has been queued up, check to see your task status and log or wait for it below..."
+result = client.tasks.wait_for(
+p result
+log = client.tasks.log(
+puts log
0  ruby_ng/hello_worker/Workerfile → ruby_ng/hello_worker/hello.worker
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.