Created
June 13, 2012 18:59
-
-
Save frommww/2925796 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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