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

refactor: simplify code in moveToActive #2195

Merged
merged 2 commits into from
Sep 26, 2023
Merged

Conversation

manast
Copy link
Contributor

@manast manast commented Sep 25, 2023

No description provided.

return prepareJobForProcessing(KEYS, ARGV[1], target, jobId, ARGV[2], maxJobs, expireTime, opts)
else
jobId = moveJobFromPriorityToActive(KEYS[3], KEYS[2], KEYS[10])
-- If jobId is special ID 0:delay, then there is no job to process
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment could be moved before line 69:
if not jobId or (jobId and string.sub(jobId, 1, 2) == "0:") then

@manast manast merged commit ba77e06 into master Sep 26, 2023
@manast manast deleted the refactor/move-to-active branch September 26, 2023 12:50
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 this pull request may close these issues.

2 participants