Skip to content

Commit 21ecfea

Browse files
committed
Added a note about on_failure hooks to doc
The on_failure hook is already documented. I simply added a note that the Reque::DirtyExit exception is also passed to the hook now.
1 parent ca2e8ac commit 21ecfea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/HOOKS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The available hooks are:
8686
`Resque::Failure` backend.
8787

8888
* `on_failure`: Called with the exception and job args if any exception occurs
89-
while performing the job (or hooks).
89+
while performing the job (or hooks), this includes Resque::DirtyExit.
9090

9191
Hooks are easily implemented with superclasses or modules. A superclass could
9292
look something like this.

0 commit comments

Comments
 (0)