Skip to content

Instantly share code, notes, and snippets.

@fortyfivan
Last active September 7, 2015 02:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
require "iron_worker_ng"
require "faker"
n = ARGV[0].to_i
client = IronWorkerNG::Client.new
n.times do
id = Faker::Number.number(10)
lat = Faker::Address.latitude
lon = Faker::Address.longitude
client.tasks.create("windmill", "id" => id, "lat" => lat, "lon" => lon)
puts "Running calculator worker for windmill id: #{id} at location: #{lat} #{lon}\n"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment