From 6d8cd501b739433749c58047f1befe7129fecdd3 Mon Sep 17 00:00:00 2001 From: Michael Alexander Date: Tue, 12 Nov 2013 13:11:48 +1100 Subject: [PATCH] Added token as an argument to the afterEnqueue callback --- README.md | 1 + lib/Resque.php | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 8b8bb53..e247c21 100644 --- a/README.md +++ b/README.md @@ -384,6 +384,7 @@ Called after a job has been queued using the `Resque::enqueue` method. Arguments * 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 +* Token - string containing the new token of the enqueued job ## Contributors ## diff --git a/lib/Resque.php b/lib/Resque.php index e01ab75..1bba5da 100644 --- a/lib/Resque.php +++ b/lib/Resque.php @@ -189,6 +189,7 @@ class Resque 'class' => $class, 'args' => $args, 'queue' => $queue, + 'token' => $result, )); }