Skip to content

Commit

Permalink
Fix namespace for InterruptError in README (#1193)
Browse files Browse the repository at this point in the history
The example otherwise crashes with:

```
NameError:
  uninitialized constant ApplicationJob::InterruptError
```
  • Loading branch information
padde authored Dec 19, 2023
1 parent 2dc07b7 commit b2f0344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -918,9 +918,9 @@ class MyJob < ApplicationJob
# The extension must be included before other extensions
include GoodJob::ActiveJobExtensions::InterruptErrors
# Discard the job if it is interrupted
discard_on InterruptError
discard_on GoodJob::InterruptError
# Retry the job if it is interrupted
retry_on InterruptError, wait: 0, attempts: Float::INFINITY
retry_on GoodJob::InterruptError, wait: 0, attempts: Float::INFINITY
end
```
Expand Down

0 comments on commit b2f0344

Please sign in to comment.