itk_queue v0.10.10 ITKQueue.Retry View Source

Handles retrying messages that fail to process.

This is accomplished by creating a new temporary queue and publishing 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.

Link to this section Summary

Link to this section Functions

Link to this function delay(channel, subscription, message, map) View Source
delay(
  channel :: AMQP.Channel.t(),
  subscription :: ITKQueue.Subscription.t(),
  message :: ITKQueue.message(),
  meta :: ITKQueue.metadata()
) :: 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.