Using Console
Using CLI
<subscription-name>
with the name of the subscription that needs to be remediated.
5. Verify the subscription has been updated by running the following command:Using Python
expiration_policy
property of the subscription object to a value greater than zero. This will ensure that the messages that have been acknowledged are retained for a certain period of time.return_immediately
parameter of the pull
method to False
. This will ensure that the method waits for the server to return any retained messages before returning.acknowledge
method of the SubscriberClient
object and passing in the message IDs of the retained messages.