module Honeybadger::Plugins::Resque::Extension

def around_perform_with_honeybadger(*args)

errors reported within jobs get sent before the worker dies.
Executed before +on_failure+ hook; the flush is necessary so that
def around_perform_with_honeybadger(*args)
  Honeybadger.flush { yield }
end