antirez / antirez/disque

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

Đang mở
#173 2 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
8.1k
Fork
532
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.