Skip to content

Commit

Permalink
Added a note about on_failure hooks to doc
Browse files Browse the repository at this point in the history
The on_failure hook is already documented. I simply added a note that the
Reque::DirtyExit exception is also passed to the hook now.
  • Loading branch information
raykrueger committed Sep 22, 2011
1 parent ca2e8ac commit 21ecfea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/HOOKS.md
Expand Up @@ -86,7 +86,7 @@ The available hooks are:
`Resque::Failure` backend.

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

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

0 comments on commit 21ecfea

Please sign in to comment.