public function delete(TaskInterface $task)
    {
        $this->doDelete($task->getMetadata('RdsMessageId'), [
            'InternalMessageId' => $task->getId(),
            'RdsMessageId' => $task->getMetadata('RdsMessageId')
        ]);
    }
public function delete(TaskInterface $task)
    {
        $this->doDelete($task->getMetadata('RdsMessageId'), [
            'InternalMessageId' => $task->getId(),
            'RdsMessageId' => $task->getMetadata('RdsMessageId')
        ]);
    }
public function delete ( TaskInterface $ task ) { $ this -> doDelete ( $ task -> getMetadata ( 'RdsMessageId' ) , [ 'InternalMessageId' => $ task -> getId ( ) , 'RdsMessageId' => $ task -> getMetadata ( 'RdsMessageId' ) ] ) ; }
Delete the message after being processed by the worker.

@param TaskInterface $task
Delete the message after being processed by the worker .