Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
2ca7484c
Commit
2ca7484c
authored
Oct 19, 2016
by
Eric Fischer
Committed by
GitHub
Oct 19, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13763 from edx/efischer/use_env_tokens
Allow Celery queue settings to be defined by ENV_TOKENS
parents
c8b36a6a
5df9f201
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
lms/envs/aws.py
+8
-6
No files found.
lms/envs/aws.py
View file @
2ca7484c
...
@@ -266,11 +266,11 @@ BULK_EMAIL_RETRY_DELAY_BETWEEN_SENDS = ENV_TOKENS.get(
...
@@ -266,11 +266,11 @@ BULK_EMAIL_RETRY_DELAY_BETWEEN_SENDS = ENV_TOKENS.get(
# We want Bulk Email running on the high-priority queue, so we define the
# We want Bulk Email running on the high-priority queue, so we define the
# routing key that points to it. At the moment, the name is the same.
# routing key that points to it. At the moment, the name is the same.
# We have to reset the value here, since we have changed the value of the queue name.
# We have to reset the value here, since we have changed the value of the queue name.
BULK_EMAIL_ROUTING_KEY
=
HIGH_PRIORITY_QUEUE
BULK_EMAIL_ROUTING_KEY
=
ENV_TOKENS
.
get
(
'BULK_EMAIL_ROUTING_KEY'
,
HIGH_PRIORITY_QUEUE
)
# We can run smaller jobs on the low priority queue. See note above for why
# We can run smaller jobs on the low priority queue. See note above for why
# we have to reset the value here.
# we have to reset the value here.
BULK_EMAIL_ROUTING_KEY_SMALL_JOBS
=
LOW_PRIORITY_QUEUE
BULK_EMAIL_ROUTING_KEY_SMALL_JOBS
=
ENV_TOKENS
.
get
(
'BULK_EMAIL_ROUTING_KEY_SMALL_JOBS'
,
LOW_PRIORITY_QUEUE
)
# Queue to use for updating persistent grades
# Queue to use for updating persistent grades
RECALCULATE_GRADES_ROUTING_KEY
=
ENV_TOKENS
.
get
(
'RECALCULATE_GRADES_ROUTING_KEY'
,
LOW_PRIORITY_QUEUE
)
RECALCULATE_GRADES_ROUTING_KEY
=
ENV_TOKENS
.
get
(
'RECALCULATE_GRADES_ROUTING_KEY'
,
LOW_PRIORITY_QUEUE
)
...
@@ -358,8 +358,10 @@ if "TRACKING_IGNORE_URL_PATTERNS" in ENV_TOKENS:
...
@@ -358,8 +358,10 @@ if "TRACKING_IGNORE_URL_PATTERNS" in ENV_TOKENS:
# SSL external authentication settings
# SSL external authentication settings
SSL_AUTH_EMAIL_DOMAIN
=
ENV_TOKENS
.
get
(
"SSL_AUTH_EMAIL_DOMAIN"
,
"MIT.EDU"
)
SSL_AUTH_EMAIL_DOMAIN
=
ENV_TOKENS
.
get
(
"SSL_AUTH_EMAIL_DOMAIN"
,
"MIT.EDU"
)
SSL_AUTH_DN_FORMAT_STRING
=
ENV_TOKENS
.
get
(
"SSL_AUTH_DN_FORMAT_STRING"
,
SSL_AUTH_DN_FORMAT_STRING
=
ENV_TOKENS
.
get
(
"/C=US/ST=Massachusetts/O=Massachusetts Institute of Technology/OU=Client CA v1/CN={0}/emailAddress={1}"
)
"SSL_AUTH_DN_FORMAT_STRING"
,
"/C=US/ST=Massachusetts/O=Massachusetts Institute of Technology/OU=Client CA v1/CN={0}/emailAddress={1}"
)
# Django CAS external authentication settings
# Django CAS external authentication settings
CAS_EXTRA_LOGIN_PARAMS
=
ENV_TOKENS
.
get
(
"CAS_EXTRA_LOGIN_PARAMS"
,
None
)
CAS_EXTRA_LOGIN_PARAMS
=
ENV_TOKENS
.
get
(
"CAS_EXTRA_LOGIN_PARAMS"
,
None
)
...
@@ -605,7 +607,7 @@ TRACKING_SEGMENTIO_SOURCE_MAP = ENV_TOKENS.get("TRACKING_SEGMENTIO_SOURCE_MAP",
...
@@ -605,7 +607,7 @@ TRACKING_SEGMENTIO_SOURCE_MAP = ENV_TOKENS.get("TRACKING_SEGMENTIO_SOURCE_MAP",
VERIFY_STUDENT
=
AUTH_TOKENS
.
get
(
"VERIFY_STUDENT"
,
VERIFY_STUDENT
)
VERIFY_STUDENT
=
AUTH_TOKENS
.
get
(
"VERIFY_STUDENT"
,
VERIFY_STUDENT
)
# Grades download
# Grades download
GRADES_DOWNLOAD_ROUTING_KEY
=
HIGH_MEM_QUEUE
GRADES_DOWNLOAD_ROUTING_KEY
=
ENV_TOKENS
.
get
(
'GRADES_DOWNLOAD_ROUTING_KEY'
,
HIGH_MEM_QUEUE
)
GRADES_DOWNLOAD
=
ENV_TOKENS
.
get
(
"GRADES_DOWNLOAD"
,
GRADES_DOWNLOAD
)
GRADES_DOWNLOAD
=
ENV_TOKENS
.
get
(
"GRADES_DOWNLOAD"
,
GRADES_DOWNLOAD
)
...
@@ -863,7 +865,7 @@ if ENV_TOKENS.get('AUDIT_CERT_CUTOFF_DATE', None):
...
@@ -863,7 +865,7 @@ if ENV_TOKENS.get('AUDIT_CERT_CUTOFF_DATE', None):
################################ Settings for Credentials Service ################################
################################ Settings for Credentials Service ################################
CREDENTIALS_GENERATION_ROUTING_KEY
=
HIGH_PRIORITY_QUEUE
CREDENTIALS_GENERATION_ROUTING_KEY
=
ENV_TOKENS
.
get
(
'CREDENTIALS_GENERATION_ROUTING_KEY'
,
HIGH_PRIORITY_QUEUE
)
# The extended StudentModule history table
# The extended StudentModule history table
if
FEATURES
.
get
(
'ENABLE_CSMH_EXTENDED'
):
if
FEATURES
.
get
(
'ENABLE_CSMH_EXTENDED'
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment