Skip to content

Commit e6dda09

Browse files
committed
Ensure the correct jobs are present
1 parent c2ac24f commit e6dda09

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class NotifyJob < ApplicationJob
2+
def perform(*args, **kwargs)
3+
Bugsnag.notify("Failed")
4+
end
5+
end
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class UnhandledJob < ApplicationJob
2+
retry_on RuntimeError, wait: 1.second, attempts: 2
3+
4+
def perform(*args, **kwargs)
5+
raise 'Oh no!'
6+
end
7+
end

0 commit comments

Comments
 (0)