Skip to content

Instantly share code, notes, and snippets.

@frommww
Created June 13, 2012 18:59
Show Gist options
  • Save frommww/2925796 to your computer and use it in GitHub Desktop.
Save frommww/2925796 to your computer and use it in GitHub Desktop.
users = User.all
users.each_slice(100) do |users_slice|
client = IronWorkerNG::Client.new
params = {# include the params the worker needs
}
client.tasks.create("notification_worker", params)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment