diff --git a/README.md b/README.md index 552b8a7..2f942ab 100644 --- a/README.md +++ b/README.md @@ -316,8 +316,9 @@ Called whenever a job fails. Arguments passed (in this order) include: Called after a job has been queued using the `Resque::enqueue` method. Arguments passed (in this order) include: -* Class - string containing the name of the class the job was scheduled in +* Class - string containing the name of scheduled job * Arguments - array of arguments supplied to the job +* Queue - string containing the name of the queue the job was added to ## Contributors ## diff --git a/lib/Resque.php b/lib/Resque.php index df211a6..9bc8143 100644 --- a/lib/Resque.php +++ b/lib/Resque.php @@ -154,7 +154,8 @@ class Resque if ($result) { Resque_Event::trigger('afterEnqueue', array( 'class' => $class, - 'args' => $args, + 'args' => $args, + 'queue' => $queue, )); }