Skip to content

Commit 6d8cd50

Browse files
committed
Added token as an argument to the afterEnqueue callback
1 parent b0843f4 commit 6d8cd50

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ Called after a job has been queued using the `Resque::enqueue` method. Arguments
384384
* Class - string containing the name of scheduled job
385385
* Arguments - array of arguments supplied to the job
386386
* Queue - string containing the name of the queue the job was added to
387+
* Token - string containing the new token of the enqueued job
387388

388389
## Contributors ##
389390

lib/Resque.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ public static function enqueue($queue, $class, $args = null, $trackStatus = fals
189189
'class' => $class,
190190
'args' => $args,
191191
'queue' => $queue,
192+
'token' => $result,
192193
));
193194
}
194195

0 commit comments

Comments
 (0)