Skip to main content

basic_ack

Acknowledges a message delivery by its tag, ensuring a connection to the broker exists and attempting a reconnection if the operation fails or the channel is missing.

def basic_ack(
amqp_context: object,
delivery_tag: int
) - > null

Acknowledges one or more delivered messages to the AMQP broker to signal that they have been processed.

Parameters

NameTypeDescription
amqp_contextobjectThe application context containing the active AMQP channel and connection state.
delivery_tagintThe server-assigned delivery identifier for the message being acknowledged.

Returns

TypeDescription
nullNothing is returned; the function outputs success or error messages to the console via the context object.