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

Add redis global key prefix #106

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions editgroups/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from .secret import REDIS_HOST
from .secret import REDIS_PASSWORD
from .secret import REDIS_PORT
from .secret import REDIS_KEY_PREFIX
from .secret import SECRET_KEY
from .secret import SOCIAL_AUTH_MEDIAWIKI_KEY
from .secret import SOCIAL_AUTH_MEDIAWIKI_SECRET
Expand Down Expand Up @@ -216,6 +217,7 @@
REDIS_PORT,
REDIS_DB)
BROKER_URL = 'redis://'+REDIS_URL
BROKER_TRANSPORT_OPTIONS = {'global_keyprefix': REDIS_KEY_PREFIX}
# We also use Redis as result backend.
CELERY_RESULT_BACKEND = BROKER_URL

Expand Down
1 change: 1 addition & 0 deletions editgroups/settings/secret_gh_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
REDIS_PORT = REDIS_REAL_PORT
REDIS_DB = 0
REDIS_PASSWORD = ''
REDIS_KEY_PREFIX = 'editgroups_'


1 change: 1 addition & 0 deletions editgroups/settings/secret_toolforge.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@
REDIS_PORT = 6379
REDIS_DB = 3
REDIS_PASSWORD = ''
REDIS_KEY_PREFIX = 'editgroups_'

Loading