Skip to content

Commit 438bb43

Browse files
committed
Preserve tasks order
1 parent 92b1604 commit 438bb43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

transports/AsyncRedisTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static function getQueueKey($queueName, $progress = false)
3333
*/
3434
public function send($text, $queueName)
3535
{
36-
$return = $this->connection->executeCommand('RPUSH', [self::getQueueKey($queueName), $text]);
36+
$return = $this->connection->executeCommand('LPUSH', [self::getQueueKey($queueName), $text]);
3737
$this->connection->executeCommand('PUBLISH', [self::getQueueKey($queueName), 'new']);
3838
return $return;
3939
}
@@ -127,4 +127,4 @@ function disconnect()
127127
$this->connection->close();
128128
}
129129
}
130-
}
130+
}

0 commit comments

Comments
 (0)