-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
result_backend setting supports rediss:// protocol URLs #4696
result_backend setting supports rediss:// protocol URLs #4696
Conversation
@thedrow Done. Thanks, I had overlooked that part of the contribution docs. |
de3f9c9
to
84c7053
Compare
Codecov Report
@@ Coverage Diff @@
## master #4696 +/- ##
==========================================
+ Coverage 82.6% 82.62% +0.02%
==========================================
Files 140 140
Lines 15868 15892 +24
Branches 1983 1989 +6
==========================================
+ Hits 13107 13131 +24
Misses 2567 2567
Partials 194 194
Continue to review full report at Codecov.
|
Wow, I feel silly. Just added you as a collaborator so you can push.
… On May 3, 2018, at 6:02 AM, Omer Katz ***@***.***> wrote:
@thedrow requested changes on this pull request.
I tried to fix your lint issues but I can't push to your branch.
You have two tests with the same name.
One of them is failing. I've grouped them into one test with a parameter.
Here's the diff:
diff --git a/t/unit/backends/test_redis.py b/t/unit/backends/test_redis.py
index 33d30b81a..ca91af93b 100644
--- a/t/unit/backends/test_redis.py
+++ b/t/unit/backends/test_redis.py
@@ -326,20 +326,15 @@ class test_RedisBackend:
from redis.connection import SSLConnection
assert x.connparams['connection_class'] is SSLConnection
-
- @skip.unless_module('redis')
- def test_backend_ssl_url_invalid(self):
- with pytest.raises(ValueError):
- x = self.Backend(
- ***@***.***:123//1?ssl_cert_reqs=CERT_KITTY_CATS',
- app=self.app,
- )
-
@skip.unless_module('redis')
- def test_backend_ssl_url_invalid(self):
+ @pytest.mark.parametrize("uri", [
+ ***@***.***:123//1?ssl_cert_reqs=CERT_KITTY_CATS',
+ 'rediss: ***@***.***:123//1'
+ ])
+ def test_backend_ssl_url_invalid(self, uri):
with pytest.raises(ValueError):
- x = self.Backend(
- ***@***.***:123//1',
+ self.Backend(
+ uri,
app=self.app,
)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#4696 (review)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AEufwoHLzROEO2ZuPMKaVdeu4B_EC6pCks5tutXMgaJpZM4Tti41>.
|
How does one use this? I'm trying to use this in my Flask app, and I get this error ...
Seems like there is some integration issue between this PR within |
@archit Please post the results of the following commands:
|
@remeika here's the output from my setup...
|
Thanks for that. Are you trying to use Redis TLS as a broker or a results backend? Sadly this PR only covers the latter.
… On Jun 18, 2018, at 5:17 PM, Archit Baweja ***@***.***> wrote:
@remeika here's the output from my setup...
***@***.*** ~]$ sudo docker exec 3cb pip freeze | grep celery
celery==4.2.0
***@***.*** ~]$ sudo docker exec 3cb pip freeze | grep kombu
kombu==4.2.1
***@***.*** ~]$
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@remeika @georgepsarakis oh ok, that makes sense. I'm using redis as a broker. I did not realize this was not for the broker. Thanks for clarifying. |
@remeika haha, sure thing. Let me see if I can make some time. I will have to review some of the details in CONTRIBUTING.rst. Also I first have to get to make this work using |
Implements support to configure a Redis + TLS connection to the result backend purely by using
result_backend
, rather than the settingredis_backend_use_ssl
.The fields within
redis_backend_use_ssl
are now configurable via URL parameters. This has two significant advantages:ssl
package in order to declareredis_backend_use_ssl.cert_reqs
. This allows more configuration to be pulled from the environment rather than committed as code.redis_backend_use_ssl
; users can connect to Redis + TLS in dependent projects without any changes by maintainers.Fixes #4695