itk_queue v0.3.3 ITKQueue.Retry

Handles retrying messages that fail to process.

This is accomplished by creating a new temporary queue and pubishing the message to that queue.

The queue is configured so that the message expires after a delay and when it expires it is republished with the original routing key.

Summary

Functions

Retry the given message after a delay

Functions

delay(channel, subscription, payload, map)
delay(channel :: AMQP.Channel.t, subscription :: ITKQueue.Subscription.t, payload :: String.t, meta :: Map.t) :: no_return

Retry the given message after a delay.

The message will go into a temporary “retry” queue and, after a delay, will be republished with the original routing key.