diff --git a/features/fixtures/rails8/app/app/jobs/notify_job.rb b/features/fixtures/rails8/app/app/jobs/notify_job.rb new file mode 100644 index 000000000..285934618 --- /dev/null +++ b/features/fixtures/rails8/app/app/jobs/notify_job.rb @@ -0,0 +1,5 @@ +class NotifyJob < ApplicationJob + def perform(*args, **kwargs) + Bugsnag.notify("Failed") + end +end diff --git a/features/fixtures/rails8/app/app/jobs/unhandled_job.rb b/features/fixtures/rails8/app/app/jobs/unhandled_job.rb new file mode 100644 index 000000000..c14ddd4c2 --- /dev/null +++ b/features/fixtures/rails8/app/app/jobs/unhandled_job.rb @@ -0,0 +1,7 @@ +class UnhandledJob < ApplicationJob + retry_on RuntimeError, wait: 1.second, attempts: 2 + + def perform(*args, **kwargs) + raise 'Oh no!' + end +end