0

我是 Resque 的新手,过去 2 个月我一直在生产中使用它,我现在遇到一个问题,如果出现异常,我希望我的作业在队列中重新排队。我的工作进行了大约 50 次外部 HTTP 调用,其中一些调用由于延迟而失败,有时服务中断。我正在探索https://github.com/lantins/resque-retry但我试图了解 resque-retry 是否重试作业或重新排队,我不希望失败的作业优先于另一个此队列中的作业,我希望它再次添加到队列中。此外,我所有的 HTTP 调用都有一个救援块,在使用 resque-retry 时,我必须对这个类(从 Resque 执行调用)进行一些更改,以便它被重试/重新排队。

4

1 回答 1

0

I dont think the failed job get any higher precedence over the other jobs in same queues

since in resque term it only a message in the queues the only precedence

it can get is perhaps if the queues from from which the failed job message was consumed

is of higher precedence over the other queues but if the same queue has some message in it

and failed job message arrive then it will function just as normal queue fashion i.e FIFO

order

于 2012-11-05T11:07:50.080 回答