[GH-ISSUE #401] ERROR: Failed to extend lease for tasks #1191

Closed
opened 2026-03-07 22:07:00 +03:00 by kerem · 1 comment
Owner

Originally created by @lvsoso on GitHub (Feb 20, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/401


asynq: pid=6499 2022/02/20 05:20:00.136535 ERROR: Failed to extend lease for tasks [11a5aed1-ec41-4e63-9c14-91b834bac2e1]: ERR syntax error


github.com/hibiken/asynq@cabf8d3627/internal/rdb/rdb.go (L944)

Redis version >= 6.2.0: Added the GT and LT options.

I encounter the error when using the redis that it's version low than 6.2.0.

Originally created by @lvsoso on GitHub (Feb 20, 2022). Original GitHub issue: https://github.com/hibiken/asynq/issues/401 ```shell asynq: pid=6499 2022/02/20 05:20:00.136535 ERROR: Failed to extend lease for tasks [11a5aed1-ec41-4e63-9c14-91b834bac2e1]: ERR syntax error ``` https://github.com/hibiken/asynq/blob/cabf8d36273ced35d2df62cde4001b43ab7748bd/internal/rdb/rdb.go#L944 Redis version >= 6.2.0: Added the `GT` and `LT` options. I encounter the error when using the redis that it's version low than 6.2.0.
kerem closed this issue 2026-03-07 22:07:01 +03:00
Author
Owner

@hibiken commented on GitHub (Feb 20, 2022):

@lvsoso Thank you for creating this issue!

I missed the supported redis version when I was browsing the zadd documentation. Since GT is not strictly needed (although it'd be nice if we can add it to convey the intention to "extend" the lease), I'll remove that option for now. XX option should be sufficient in our case, since we check the expired lease before sending the ZADD command to redis.

<!-- gh-comment-id:1046239629 --> @hibiken commented on GitHub (Feb 20, 2022): @lvsoso Thank you for creating this issue! I missed the supported redis version when I was browsing the zadd documentation. Since `GT` is not strictly needed (although it'd be nice if we can add it to convey the intention to "extend" the lease), I'll remove that option for now. XX option should be sufficient in our case, since we check the expired lease before sending the ZADD command to redis.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#1191
No description provided.