Skip to content

🐛 redis.exceptions.LockNotOwnedError: Cannot extend a lock that's no longer owned #119

Answered by codingjoe
hihosilvers asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Thanks, you are welcome, we love to help!

The lock extension task is not run on dramatiq, but directly via the scheduler. Unless your CPU has no time to pick up the thread, that shouldn't be a likely cause. In most cases, it will be the Redis setup that is loosing data. Which isn't great. If your services restarts frequently, I would consider altering the appendfsync setting, to increase durability.

Anyhow, the pending patch should resolve the issue as long as your orchestration restarts the crontab process.

Best,
Joe

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@pencil
Comment options

@codingjoe
Comment options

@pencil
Comment options

@codingjoe
Comment options

Answer selected by codingjoe
@pencil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #118 on May 28, 2025 16:49.