Skip to content

Instantly share code, notes, and snippets.

@rabidpraxis
Created July 25, 2012 17:36
Show Gist options
  • Save rabidpraxis/3177445 to your computer and use it in GitHub Desktop.
Save rabidpraxis/3177445 to your computer and use it in GitHub Desktop.
queue = TorqueBox::Messaging::Queue.new('/queues/test_queue')
queue.publish('test message')
TorqueBox.configure do
pool :web, :type => :shared
queue 'queues/test_queue' do
processor TestConsumer
end
job CheckForEndedCampaigns do
singleton true
cron "1 * * * * ?"
end
service RestCollector do
singleton true
end
ruby do
version '1.9'
end
environment do
RAILS_ENV 'development'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment