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

RFC: Support Redis celery broker #213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zachmullen
Copy link
Contributor

@zachmullen zachmullen commented Oct 10, 2024

As written, the change here in the _HerokuMixin is backwards incompatible and will break any installations using CloudAMQP rather than the Redis addon. If we wanted a backward compatible version of this, we'd need fallback logic (likely in a @property) to check for either environment variable (with some order of precedence we could decide on).

For local development, no code changes are needed in this library to support using redis as the broker.

Note also that this PR doesn't go as far as to enable a celery results backend. If we switch to Redis, it's officially more suitable as a result backend than AMQP, but that's a more controversial change than I want for the scope of this RFC.

"""

# Assume AMQP.
CELERY_BROKER_URL = values.Value("amqp://localhost:5672/")
CELERY_BROKER_URL = values.Value("redis://localhost:6379/0")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Resonant dev environments always set this value, so the default isn't really important.

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.

1 participant