jobs: show retried jobs in /jobs listing.

Fix the /jobs listing to show retried jobs. GoodJob::ActiveJobJob has a
default scope that filters out retried jobs; remove it in the index
controller so we can see retried jobs.

Also fix mail delivery jobs not showing up in the dropdown in the /jobs
search form.
This commit is contained in:
evazion
2022-01-04 17:44:55 -06:00
parent f38910f0a2
commit dc159ed135
3 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ class BackgroundJob < GoodJob::ActiveJobJob
end
def name_matches(name)
class_name = name.tr(" ", "_").camelize + "Job"
class_name = name.tr(" ", "_").classify + "Job"
where_json_contains(:serialized_params, { job_class: class_name })
end