Skip to content

Commit

Permalink
Ensure the correct jobs are present
Browse files Browse the repository at this point in the history
  • Loading branch information
Cawllec committed Dec 10, 2024
1 parent c2ac24f commit e6dda09
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions features/fixtures/rails8/app/app/jobs/notify_job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class NotifyJob < ApplicationJob
def perform(*args, **kwargs)
Bugsnag.notify("Failed")
end
end
7 changes: 7 additions & 0 deletions features/fixtures/rails8/app/app/jobs/unhandled_job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class UnhandledJob < ApplicationJob
retry_on RuntimeError, wait: 1.second, attempts: 2

def perform(*args, **kwargs)
raise 'Oh no!'
end
end

0 comments on commit e6dda09

Please sign in to comment.