public function release(QueueItem $item)
    {
        $this->client->changeMessageVisibility([
            'QueueUrl' => $this->url,
            'ReceiptHandle' => $item->getReceipt(),
            'VisibilityTimeout' => $this->visibilityTimeout * ($item->getAttempts() + 1),
        ]);
    }
public function release(QueueItem $item)
    {
        $this->client->changeMessageVisibility([
            'QueueUrl' => $this->url,
            'ReceiptHandle' => $item->getReceipt(),
            'VisibilityTimeout' => $this->visibilityTimeout * ($item->getAttempts() + 1),
        ]);
    }
public function release ( QueueItem $ item ) { $ this -> client -> changeMessageVisibility ( [ 'QueueUrl' => $ this -> url , 'ReceiptHandle' => $ item -> getReceipt ( ) , 'VisibilityTimeout' => $ this -> visibilityTimeout * ( $ item -> getAttempts ( ) + 1 ) , ] ) ; }
This will happen when an error happens, we release the item back into the queue.
This will happen when an error happens we release the item back into the queue .