I'm using RabbitMQ queue, I'm using it in node.js / express app, I'm using Wascally as my library to consume and publish messages.
My scenario is, that after consumer finalizes handling message it requeue's the message again, so the task is being done in a cycle. For example message initiates the task of downloading data from some API and after it's finished it publishes the same message again so the data download will be performed again.
The problem is that if my consumer app crashes the message stays in the queue as "Unacked". What should I do to get my message back to the queue if the consumer does not respond for some time (for example 30 seconds)?