bin/pwn_bdba_scan in pwn-0.4.913 vs bin/pwn_bdba_scan in pwn-0.4.914
- old
+ new
@@ -108,10 +108,11 @@
break if scan_progress_resp[:products].none? { |p| p[:status] == 'B' } || report_only
# Cancel queued scan if it's been queued for more than 90 minutes
if scan_progress_busy_duration > queue_timeout.to_i
abort_total += 1
- puts "Scan Queued for More than #{queue_timeout} Seconds. Aborting and Re-Queuing."
+ puts "Scan Queued for More than #{queue_timeout} Seconds."
+ puts "Aborting and Re-Queuing Attempt #{abort_total} of #{scan_attempts}..."
scan_progress_resp[:products].select { |p| p[:status] == 'B' }.each do |p|
puts "Abort Queued Scan: #{p[:name]}"
PWN::Plugins::BlackDuckBinaryAnalysis.abort_product_scan(
token: token,
product_id: p[:product_id]