Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Failed to extend lease for tasks #401

Closed
lvsoso opened this issue Feb 20, 2022 · 1 comment · Fixed by #402
Closed

ERROR: Failed to extend lease for tasks #401

lvsoso opened this issue Feb 20, 2022 · 1 comment · Fixed by #402

Comments

@lvsoso
Copy link

lvsoso commented Feb 20, 2022

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

err = r.client.ZAddArgs(context.Background(), base.LeaseKey(qname), redis.ZAddArgs{XX: true, GT: true, Members: zs}).Err()

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.

@hibiken
Copy link
Owner

hibiken commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants