-
-
Notifications
You must be signed in to change notification settings - Fork 930
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
Stop automatically converting the amqp:// prefix to librabbitmq:// + refactored test #1226
base: main
Are you sure you want to change the base?
Conversation
… it is installed.
…stop_converting_amqp_to_librabbitmq_when_available(), making sure kombu.Connection() does automatically convert amqp:// prefix to librabbitmq://
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is flake8 issue to address
Done. It was caused by an unused import. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AttributeError: <module 'kombu.connection' from '/home/travis/build/celery/kombu/kombu/connection.py'> does not have the attribute 'supports_librabbitmq'
@auvipy We're almost ready for Celery 5. Removing the recommendation is a step in the right direction for Celery 4.x. @Alireza2n What do you think? |
yup removing recommendation could be the first move |
@thedrow Hi! |
Why isn't this a breaking change? |
Well, the existing code switched automatically to |
Yes but it shouldn't switch without a major version bump. |
Got it. |
Based on issue #4693 on celery repo, librabbitmq is no longer the recommended package, but the code in kombu does not follow this recommendation.
It's also been discussed in PR #5873.
This PR removes the code where
kombu.Connection()
's__init__()
method automatically converts the amqp:// prefix to librabbitmq://.Also
test_prefer_librabbitmq_over_amqp_when_available()
was rewritten totest_stop_converting_amqp_to_librabbitmq_when_available()
.