Skip to content

Instantly share code, notes, and snippets.

@bhauman
Created February 27, 2010 20:29
Show Gist options
  • Select an option

  • Save bhauman/316937 to your computer and use it in GitHub Desktop.

Select an option

Save bhauman/316937 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'carrot'
q = Carrot.queue('tasks')
10.times {|x| q.publish('Message number ' + x.to_s) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment