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

Update how Redis URL is passed to Bull #438

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

jonmast
Copy link
Contributor

@jonmast jonmast commented Sep 7, 2021

Changes Made

Bull no longer allows passing the URL directly as the value of
options.redis. Instead, pass URL as a separate argument when present.

See OptimalBits/bull#2118 for additional
context.

Potential Risks

Specifying the Redis URL under the redis key instead of url would have worked before's Bull's changes but this PR doesn't attempt to address that scenario.

Test Plan

Using the url config with the latest version of Bull should demonstrate the fix. This should also work on older versions of Bull, the way it was previously handled here only worked by accident.

Checklist

  • I've increased test coverage there are no tests as far as I can see? Not sure what this is about
  • Since this is a public repository, I've checked I'm not publishing private data in the code, commit comments, or this PR.

@bradvogel bradvogel self-requested a review September 8, 2021 12:44
@@ -120,8 +120,14 @@ class Queues {
if (queueConfig.createClient)
options.createClient = queueConfig.createClient;
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks good. Though CI is failing the commit message because it doesn't conform to conventional commit standards: https://www.conventionalcommits.org/en/v1.0.0/. You can use a tool like https://www.npmjs.com/package/git-cz to generate one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for reviewing @bradvogel, I've updated the commit message.

@jonmast jonmast force-pushed the fix-bull-url-config branch from 7083e8f to 8057b29 Compare September 8, 2021 12:53
Bull no longer allows passing the URL directly as the value of
`options.redis`. Instead, pass URL as a separate argument when present.

See OptimalBits/bull#2118 for additional context.
@jonmast jonmast force-pushed the fix-bull-url-config branch from 8057b29 to 81bf488 Compare September 8, 2021 12:55
@bradvogel bradvogel merged commit ddf5048 into bee-queue:master Sep 8, 2021
@beequeueci
Copy link
Collaborator

🎉 This PR is included in version 3.29.3 🎉

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.

3 participants