mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-24 17:25:13 +00:00
#218 Remove item from queue as well when args match
This commit is contained in:
parent
226ec33bb0
commit
6cda08de25
@ -265,6 +265,7 @@ class Resque
|
|||||||
|
|
||||||
if (!empty($string)) {
|
if (!empty($string)) {
|
||||||
if(self::matchItem($string, $items)) {
|
if(self::matchItem($string, $items)) {
|
||||||
|
self::redis()->rpop($tempQueue);
|
||||||
$counter++;
|
$counter++;
|
||||||
} else {
|
} else {
|
||||||
self::redis()->rpoplpush($tempQueue, self::redis()->getPrefix() . $requeueQueue);
|
self::redis()->rpoplpush($tempQueue, self::redis()->getPrefix() . $requeueQueue);
|
||||||
|
Loading…
Reference in New Issue
Block a user