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

Fix delete lock move waiting children #1213

Merged
merged 7 commits into from Apr 26, 2022

Conversation

roggervalf
Copy link
Collaborator

@roggervalf roggervalf commented Apr 26, 2022

ref #1115

@roggervalf roggervalf requested a review from manast April 26, 2022 00:16
@@ -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
Copy link
Collaborator Author

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)
Copy link
Contributor

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.

Copy link
Collaborator Author

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

@roggervalf roggervalf merged commit 14f0e4a into master Apr 26, 2022
@roggervalf roggervalf deleted the fix-delete-lock-move-waiting-children branch April 26, 2022 03:06
github-actions bot pushed a commit that referenced this pull request Apr 26, 2022
# [1.81.0](v1.80.6...v1.81.0) (2022-04-26)

### Features

* **move-to-delayed:** allow passing token ([#1213](#1213)) ([14f0e4a](14f0e4a))
@github-actions
Copy link

🎉 This PR is included in version 1.81.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants