Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 188 Bytes
# Here is how to queue tasks from Ruby.
require 'iron_worker'
client = IronWorkerNG::Client.new()
10.times do |i|
client.tasks.create(
'hello', {name: "World #{i}", i: i}
)
end