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
46ad8a33
Commit
46ad8a33
authored
Feb 12, 2016
by
jsa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
specify routing / queue for program credentials task.
ECOM-3638
parent
8a620640
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletions
+12
-1
lms/envs/aws.py
+4
-0
lms/envs/common.py
+1
-0
lms/envs/yaml_config.py
+4
-0
openedx/core/djangoapps/programs/tasks/v1/tasks.py
+3
-1
No files found.
lms/envs/aws.py
View file @
46ad8a33
...
...
@@ -762,3 +762,7 @@ MAX_BOOKMARKS_PER_COURSE = ENV_TOKENS.get('MAX_BOOKMARKS_PER_COURSE', MAX_BOOKMA
# Cutoff date for granting audit certificates
if
ENV_TOKENS
.
get
(
'AUDIT_CERT_CUTOFF_DATE'
,
None
):
AUDIT_CERT_CUTOFF_DATE
=
dateutil
.
parser
.
parse
(
ENV_TOKENS
.
get
(
'AUDIT_CERT_CUTOFF_DATE'
))
################################ Settings for Credentials Service ################################
CREDENTIALS_GENERATION_ROUTING_KEY
=
HIGH_PRIORITY_QUEUE
lms/envs/common.py
View file @
46ad8a33
...
...
@@ -2768,3 +2768,4 @@ AUDIT_CERT_CUTOFF_DATE = None
################################ Settings for Credentials Service ################################
CREDENTIALS_SERVICE_USERNAME
=
'credentials_service_user'
CREDENTIALS_GENERATION_ROUTING_KEY
=
HIGH_PRIORITY_QUEUE
lms/envs/yaml_config.py
View file @
46ad8a33
...
...
@@ -313,3 +313,7 @@ if FEATURES.get('INDIVIDUAL_DUE_DATES'):
if
FEATURES
.
get
(
'ENABLE_LTI_PROVIDER'
):
INSTALLED_APPS
+=
(
'lti_provider'
,)
AUTHENTICATION_BACKENDS
+=
(
'lti_provider.users.LtiBackend'
,
)
################################ Settings for Credentials Service ################################
CREDENTIALS_GENERATION_ROUTING_KEY
=
HIGH_PRIORITY_QUEUE
openedx/core/djangoapps/programs/tasks/v1/tasks.py
View file @
46ad8a33
...
...
@@ -17,6 +17,8 @@ from openedx.core.lib.token_utils import get_id_token
LOGGER
=
get_task_logger
(
__name__
)
# Under cms the following setting is not defined, leading to errors during tests.
ROUTING_KEY
=
getattr
(
settings
,
'CREDENTIALS_GENERATION_ROUTING_KEY'
,
None
)
def
get_api_client
(
api_config
,
student
):
...
...
@@ -115,7 +117,7 @@ def award_program_certificate(client, username, program_id):
})
@task
(
bind
=
True
,
ignore_result
=
True
)
@task
(
bind
=
True
,
ignore_result
=
True
,
routing_key
=
ROUTING_KEY
)
def
award_program_certificates
(
self
,
username
):
"""
This task is designed to be called whenever a student's completion status
...
...
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