lib/torquebox_inspector.rb
# Removes all pending tasks from the Backgroundable job processor.
# USE ONLY IN CASE OF EMERGENCY!
Removes all pending tasks from the Backgroundable job processor.
USE ONLY IN CASE OF EMERGENCY!
Removes all pending tasks from the Backgroundable job processor . USE ONLY IN CASE OF EMERGENCY!
def bg_purge
    logger.warn "About to purge background queue with #{bg_queue['MessageCount']} messages, #{bg_queue['MessagesAdded']} already received}"
    purged_count = bg_queue.removeMessages('')
    logger.error "Purged #{purged_count} messages"
    {
      purged_count: purged_count
    }
  end
def bg_purge logger . warn "About to purge background queue with #{bg_queue['MessageCount']} messages, #{bg_queue['MessagesAdded']} already received}" purged_count = bg_queue . removeMessages ( '' ) logger . error "Purged #{purged_count} messages" { purged_count : purged_count } end
Removes all pending tasks from the Backgroundable job processor.
Removes all pending tasks from the Backgroundable job processor .