Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 53a7d23f91999b5712738fc5a779e65733014041 1 parent 32ae338
@joshk joshk authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 lib/travis/hub.rb
View
11 lib/travis/hub.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.