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
Fix delete lock move waiting children #1213
Conversation
@@ -21,7 +21,15 @@ | |||
]] | |||
local rcall = redis.call | |||
|
|||
local function move_to_waiting_children (activeKey, waitingChildrenKey, jobId, timestamp) | |||
local function move_to_waiting_children (activeKey, waitingChildrenKey, jobId, timestamp, lockKey, token) | |||
if token ~= "0" then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved here as we are checking the jobKey existence first in other scripts
@@ -21,7 +21,15 @@ | |||
]] | |||
local rcall = redis.call | |||
|
|||
local function move_to_waiting_children (activeKey, waitingChildrenKey, jobId, timestamp) | |||
local function move_to_waiting_children (activeKey, waitingChildrenKey, jobId, timestamp, lockKey, token) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is not following the naming convention we used for other functions, i.e. camel case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right, changed in last commit
# [1.81.0](v1.80.6...v1.81.0) (2022-04-26) ### Features * **move-to-delayed:** allow passing token ([#1213](#1213)) ([14f0e4a](14f0e4a))
🎉 This PR is included in version 1.81.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
ref #1115