A
A
Andrey Rudakov2021-12-27 10:28:08
RabbitMQ
Andrey Rudakov, 2021-12-27 10:28:08

How to re-perform failed tasks?

There is a module that adds a store, then Rabbit queues a task to get information about this store from an external site. It may be that the external site is temporarily disabled (for an update or for some other reason), in which case the task will not be completed.
How to make sure that the task is still completed when the site is available again?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2021-12-27
@DEMETRA-WORK

RabbitMQ is unlikely to know when some external site becomes available, the easiest option here is to wait and try again.
RabbitMQ can do this using the Dead Letter Exchanges extension :
* On the main queue - Q1 - the policy is hung / the dead-letter-exchange=Q2 option is set
* The policy / option dead-letter-exchange=Q1 + message-ttl= is hung on Q2 <time between repeats>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question