Replay messages from (RabbitMQ) AMQP dead-letter queue
# add this to your [bash|zsh]rc and source it
function amqp-replay(){
docker run -it -e AMQP_URI=$AMQP_URI -e AMQP_QUEUE_NAME=$AMQP_QUEUE_NAME -e AMQP_QUEUE_NOACK=$AMQP_QUEUE_NOACK -e AMQP_EXCHANGE_NAME=$AMQP_EXCHANGE_NAME --rm fgribreau/amqp-replay:v0.3.0
}
npm i amqp-replay -g
AMQP_URI="amqp://user:password@rabbitmq.ndd.com:5672/%2F" AMQP_QUEUE_NAME="social.test" AMQP_EXCHANGE_NAME="fgtest" amqp-replay
Add INFINITE=true
to replay the queue message infinitely.
See LICENSE.