mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 00:11:53 +00:00
make the queue for an enqueued job available in the afterEnqueue event
This commit is contained in:
parent
3188265655
commit
b0fbfa4f15
@ -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 ##
|
||||
|
||||
|
@ -155,6 +155,7 @@ class Resque
|
||||
Resque_Event::trigger('afterEnqueue', array(
|
||||
'class' => $class,
|
||||
'args' => $args,
|
||||
'queue' => $queue,
|
||||
));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user