Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Docs for before & after dequeue hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
humancopy committed Sep 23, 2011
1 parent d42e322 commit 17ad7f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/HOOKS.md
Expand Up @@ -72,6 +72,12 @@ The available hooks are:
* `after_enqueue`: Called with the job args after a job is placed on the queue.
Any exception raised propagates up to the code which queued the job.

* `before_dequeue`: Called with the job args before a job is removed from the queue.
If the hook returns `false`, the job will not be removed from the queue.

* `after_dequeue`: Called with the job args after a job was removed from the queue.
Any exception raised propagates up to the code which dequeued the job.

* `before_perform`: Called with the job args before perform. If it raises
`Resque::Job::DontPerform`, the job is aborted. If other exceptions
are raised, they will be propagated up the the `Resque::Failure`
Expand Down

0 comments on commit 17ad7f8

Please sign in to comment.