Skip to content

Commit

Permalink
Merge pull request #616 from airbrake/activejob-tip
Browse files Browse the repository at this point in the history
README: clarify how to avoid duplicate ActiveJob errors
  • Loading branch information
kyrylo committed Oct 17, 2016
2 parents 742643d + 593a239 commit 5cb7a0d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -312,6 +312,17 @@ anything manually and it should just work out-of-box.
No additional configuration is needed. Simply ensure that you have configured
your Airbrake notifier.

If you see duplicate error entries in your dashboard, you can avoid them by
ignoring the ActiveJob wrapper. Just add a filter like this one:

```ruby
Airbrake.add_filter do |notice|
if notice[:context][:action] == 'ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper'
notice.ignore!
end
end
```

### Resque

Since Airbrake v5 the gem provides its own failure backend. The old way of
Expand Down

0 comments on commit 5cb7a0d

Please sign in to comment.