mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
make the queue for an enqueued job available in the afterEnqueue event
This commit is contained in:
parent
3188265655
commit
b0fbfa4f15
2 changed files with 4 additions and 2 deletions
|
@ -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
|
Called after a job has been queued using the `Resque::enqueue` method. Arguments passed
|
||||||
(in this order) include:
|
(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
|
* Arguments - array of arguments supplied to the job
|
||||||
|
* Queue - string containing the name of the queue the job was added to
|
||||||
|
|
||||||
## Contributors ##
|
## Contributors ##
|
||||||
|
|
||||||
|
|
|
@ -155,6 +155,7 @@ class Resque
|
||||||
Resque_Event::trigger('afterEnqueue', array(
|
Resque_Event::trigger('afterEnqueue', array(
|
||||||
'class' => $class,
|
'class' => $class,
|
||||||
'args' => $args,
|
'args' => $args,
|
||||||
|
'queue' => $queue,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue