Skip to main content

sow-ack-queue

Import the AMPS library:

import AMPS

Acknowledging the messages for the comma-delimited set of bookmarks passed in:

cmd = AMPS.Command(AMPS.Message.Command.SOWDelete)

# set the queue topic
cmd.set_topic(topic)

# set the list of bookmarks to acknowledge
cmd.set_bookmark(message_list)

The command can now be used in execute_async with None for the message handler.