poll_background

in lib/aws/active_job/sqs/poller.rb [85:100]


        def poll_background(queues)
          config = Aws::ActiveJob::SQS.config
          queues.each { |q| validate_config(q) }
          poller_threads = queues.map do |queue|
            Thread.new do
              queue_url = config.url_for(queue)

              poller_options = poller_options(queue)
              @logger.info "Background Polling on: #{queue} => #{queue_url} with options=#{poller_options}"

              _poll(poller_options, queue_url)
            end
          end
          poller_threads.each(&:join)
        end