Allow for custom handling of exceptions that are discarded
#30622

aidanharan wants to merge aidanharan:custom-discarded-job-handling into rails:master

We do not currently have an analysis of these two commits