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

Supporting non default namespace when NextQueueStrategy is RESET_TO_HIGHEST_PRIORITY #151

Merged
merged 1 commit into from
Jan 11, 2019

Conversation

tj---
Copy link
Contributor

@tj--- tj--- commented Oct 1, 2018

Providing namespace in the lua script that supports priority queues

@coveralls
Copy link

Coverage Status

Coverage remained the same at 70.275% when pulling e6c9101 on tj---:master into 88bab76 on gresrun:master.

Copy link
Contributor

@ofirnk ofirnk left a comment

Choose a reason for hiding this comment

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

Tested locally?
Make sure that you put jobs with old client and read them with the new one to verify backwards compatibility

@@ -15,7 +16,7 @@ local OPTIONAL_SPACE_SEPARATOR = '%s*'
local NEXT_QUEUE_REGEX = QUEUE_NAME_CAPTURING_REGEX .. OPTIONAL_COMMA_SEPARATOR .. OPTIONAL_SPACE_SEPARATOR

for q in queues.gmatch(queues, NEXT_QUEUE_REGEX) do
local queueName = 'resque:queue:' .. q
Copy link
Contributor

Choose a reason for hiding this comment

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

Default namespace is resque?
Just make sure this change is backwards compatible

Copy link
Contributor

Choose a reason for hiding this comment

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

just checked it:

public static final String DEFAULT_NAMESPACE = "resque";

so default namespace seems to be resque

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ofirnk Yes, tested by enqueuing using the old client and reading using the new client. And yes, resque was the default namespace being used.

@gresrun gresrun merged commit 6205199 into gresrun:master Jan 11, 2019
@gresrun
Copy link
Owner

gresrun commented Jan 11, 2019

Thanks for the PR!

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.

5 participants