antirez / antirez/disque

Reset the RETRY timer when a job is sent to a worker?

未关闭
#173 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
8.1k
派生
532
PR 合并指标
30 天内没有已合并 PR

描述

I have one disque server with two workers, all on the same machine.
I'm adding a job with RETRY of 12 hours and TTL of 72 hours:
ADDJOB queue_name job 1000 RETRY 3600_12 TTL 3600_72
Each job requires about 4 hours of processing before it ACKed.

Sometimes while worker-1 is processing a job, worker-2 is receiving the same job.
I think it happens if worker-1 received the job after more than 8 hours so the RETRY timeout fires before it finished processing.
I would expect the RETRY timer to reset when a worker received the job and only fire 12 hours after it.

I can use WORKING jobid if my above understanding is wrong.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。