Skip to content

Commit

Permalink
Preserve tasks order
Browse files Browse the repository at this point in the history
  • Loading branch information
bazilio91 committed Jul 27, 2015
1 parent 92b1604 commit 438bb43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transports/AsyncRedisTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static function getQueueKey($queueName, $progress = false)
*/
public function send($text, $queueName)
{
$return = $this->connection->executeCommand('RPUSH', [self::getQueueKey($queueName), $text]);
$return = $this->connection->executeCommand('LPUSH', [self::getQueueKey($queueName), $text]);
$this->connection->executeCommand('PUBLISH', [self::getQueueKey($queueName), 'new']);
return $return;
}
Expand Down Expand Up @@ -127,4 +127,4 @@ function disconnect()
$this->connection->close();
}
}
}
}

0 comments on commit 438bb43

Please sign in to comment.