Created
July 25, 2012 17:36
-
-
Save rabidpraxis/3177445 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
queue = TorqueBox::Messaging::Queue.new('/queues/test_queue') | |
queue.publish('test message') |
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
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