Permalink
Browse files

we need to subscribe to the builds.configure queue as well

  • Loading branch information...
1 parent 32ae338 commit 53a7d23f91999b5712738fc5a779e65733014041 @joshk joshk committed Apr 11, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 lib/travis/hub.rb
View
@@ -71,15 +71,16 @@ def run_periodically(interval, &block)
def subscribe
info 'Subscribing to amqp ...'
- subscribe_to_build_requests
+ subscribe_to_build_requests_and_configure_builds
subscribe_to_reporting
subscribe_to_worker_status
end
- def subscribe_to_build_requests
- queue = "builds.requests"
- info "Subscribing to #{queue}"
- Travis::Amqp::Consumer.new(queue).subscribe(:ack => true, &method(:receive))
+ def subscribe_to_build_requests_and_configure_builds
+ ["builds.requests", "builds.configure"].each do |queue|
+ info "Subscribing to #{queue}"
+ Travis::Amqp::Consumer.new(queue).subscribe(:ack => true, &method(:receive))
+ end
end
def subscribe_to_reporting

0 comments on commit 53a7d23

Please sign in to comment.