aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-08-30 13:39:51 -0500
committerGitHub <noreply@github.com>2018-08-30 13:39:51 -0500
commit5bbaae0d20147d392f1458f1a99d85c245040d04 (patch)
tree9c894b56328c600ab243547e72794b361b30ea1b /guides
parent5c656889a65e116cf0beb1a059df9d1072aa088f (diff)
parent3bf33d7c2c3ef3b20173d82bf9af6b953ebc5ff2 (diff)
downloadrails-5bbaae0d20147d392f1458f1a99d85c245040d04.tar.gz
rails-5bbaae0d20147d392f1458f1a99d85c245040d04.tar.bz2
rails-5bbaae0d20147d392f1458f1a99d85c245040d04.zip
Merge pull request #33751 from steves/add_retry_notifications_to_aj
Add hooks to ActiveJob around retries and discards
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_support_instrumentation.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/guides/source/active_support_instrumentation.md b/guides/source/active_support_instrumentation.md
index 3568c47dd8..8581817d71 100644
--- a/guides/source/active_support_instrumentation.md
+++ b/guides/source/active_support_instrumentation.md
@@ -458,6 +458,14 @@ Active Job
| `:adapter` | QueueAdapter object processing the job |
| `:job` | Job object |
+### enqueue_retry.active_job
+
+| Key | Value |
+| ------------ | -------------------------------------- |
+| `:job` | Job object |
+| `:adapter` | QueueAdapter object processing the job |
+| `:error` | The error that caused the retry |
+
### perform_start.active_job
| Key | Value |
@@ -472,6 +480,22 @@ Active Job
| `:adapter` | QueueAdapter object processing the job |
| `:job` | Job object |
+### retry_stopped.active_job
+
+| Key | Value |
+| ------------ | -------------------------------------- |
+| `:adapter` | QueueAdapter object processing the job |
+| `:job` | Job object |
+| `:error` | The error that caused the retry |
+
+### discard.active_job
+
+| Key | Value |
+| ------------ | -------------------------------------- |
+| `:adapter` | QueueAdapter object processing the job |
+| `:job` | Job object |
+| `:error` | The error that caused the discard |
+
Action Cable
------------