Skip to content
New issue

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

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

Already on GitHub? # to your account

refactor(addJob): divide addJob into specific scripts #2293

Merged
merged 5 commits into from
Nov 24, 2023

Conversation

manast
Copy link
Contributor

@manast manast commented Nov 23, 2023

No description provided.

@manast manast marked this pull request as ready for review November 23, 2023 20:59
Copy link
Collaborator

@roggervalf roggervalf left a comment

Choose a reason for hiding this comment

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

Lgtm


def addJob(self, job: Job, pipe = None):
"""
Add an item to the queue
"""
keys, args = self.addJobArgs(job, None)
# if (parentOpts.waitChildrenKey) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like this code is almost the same as below

@@ -2,7 +2,7 @@
import traceback

def isRedisVersionLowerThan(current_version, minimum_version):
return semver.compare(current_version, minimum_version) == -1
return semver.VersionInfo.parse(current_version).compare(minimum_version) == -1
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice, no more warnings

@manast manast merged commit a0515f7 into master Nov 24, 2023
@manast manast deleted the feat/replace-brpoplpush-by-bzpopmin branch November 24, 2023 09:26
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants