Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Acknowledge and handle notification errors
notification.ack()
threadify.on('rule.violated', 'order_placed', async (notification) => { try { await processViolation(notification); notification.ack(); // ACK on success } catch (error) { // Don't ACK - notification redelivered after 30s (max 3 attempts) } });
err := conn.Subscribe(ctx, "rule.violated", "order_placed", func(n *threadify.Notification) { err := processViolation(n) if err != nil { // Don't ACK - notification redelivered after 30s (max 3 attempts) return } n.Ack() // ACK on success }) if err != nil { log.Fatal(err) }
def on_violation(notification): try: process_violation(notification) notification.ack() # ACK on success except Exception: # Don't ACK - notification redelivered after 30s (max 3 attempts) pass connection.subscribe("rule.violated", "order_placed", on_violation)