Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
68e760ff
Commit
68e760ff
authored
6 years ago
by
Qubad786
Committed by
M. Rehan
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Move transcript migrations tasks to low priority queue
parent
10dd775e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cms/djangoapps/contentstore/tasks.py
+5
-3
5 additions, 3 deletions
cms/djangoapps/contentstore/tasks.py
cms/envs/aws.py
+3
-0
3 additions, 0 deletions
cms/envs/aws.py
cms/envs/common.py
+3
-0
3 additions, 0 deletions
cms/envs/common.py
with
11 additions
and
3 deletions
cms/djangoapps/contentstore/tasks.py
+
5
−
3
View file @
68e760ff
...
...
@@ -84,7 +84,7 @@ COURSE_LEVEL_TIMEOUT_SECONDS = 1200
VIDEO_LEVEL_TIMEOUT_SECONDS
=
300
@chord_task
(
bind
=
True
)
@chord_task
(
bind
=
True
,
routing_key
=
settings
.
VIDEO_TRANSCRIPT_MIGRATIONS_JOB_QUEUE
)
def
task_status_callback
(
self
,
results
,
revision
,
# pylint: disable=unused-argument
course_id
,
command_run
,
video_location
):
"""
...
...
@@ -157,7 +157,8 @@ def get_course_videos(course_key):
base
=
LoggedPersistOnFailureTask
,
default_retry_delay
=
RETRY_DELAY_SECONDS
,
max_retries
=
1
,
time_limit
=
COURSE_LEVEL_TIMEOUT_SECONDS
time_limit
=
COURSE_LEVEL_TIMEOUT_SECONDS
,
routing_key
=
settings
.
VIDEO_TRANSCRIPT_MIGRATIONS_JOB_QUEUE
)
def
async_migrate_transcript
(
self
,
course_key
,
**
kwargs
):
# pylint: disable=unused-argument
"""
...
...
@@ -251,7 +252,8 @@ def save_transcript_to_storage(command_run, edx_video_id, language_code, transcr
base
=
LoggedPersistOnFailureTask
,
default_retry_delay
=
RETRY_DELAY_SECONDS
,
max_retries
=
2
,
time_limit
=
VIDEO_LEVEL_TIMEOUT_SECONDS
time_limit
=
VIDEO_LEVEL_TIMEOUT_SECONDS
,
routing_key
=
settings
.
VIDEO_TRANSCRIPT_MIGRATIONS_JOB_QUEUE
)
def
async_migrate_transcript_subtask
(
self
,
*
args
,
**
kwargs
):
# pylint: disable=unused-argument
"""
...
...
This diff is collapsed.
Click to expand it.
cms/envs/aws.py
+
3
−
0
View file @
68e760ff
...
...
@@ -546,6 +546,9 @@ HELP_TOKENS_BOOKS = ENV_TOKENS.get('HELP_TOKENS_BOOKS', HELP_TOKENS_BOOKS)
############## Settings for CourseGraph ############################
COURSEGRAPH_JOB_QUEUE
=
ENV_TOKENS
.
get
(
'
COURSEGRAPH_JOB_QUEUE
'
,
LOW_PRIORITY_QUEUE
)
########## Settings for video transcript migration tasks ############
VIDEO_TRANSCRIPT_MIGRATIONS_JOB_QUEUE
=
ENV_TOKENS
.
get
(
'
VIDEO_TRANSCRIPT_MIGRATIONS_JOB_QUEUE
'
,
LOW_PRIORITY_QUEUE
)
########################## Parental controls config #######################
# The age at which a learner no longer requires parental consent, or None
...
...
This diff is collapsed.
Click to expand it.
cms/envs/common.py
+
3
−
0
View file @
68e760ff
...
...
@@ -1494,6 +1494,9 @@ POLICY_CHANGE_TASK_RATE_LIMIT = '300/h'
############## Settings for CourseGraph ############################
COURSEGRAPH_JOB_QUEUE
=
LOW_PRIORITY_QUEUE
########## Settings for video transcript migration tasks ############
VIDEO_TRANSCRIPT_MIGRATIONS_JOB_QUEUE
=
LOW_PRIORITY_QUEUE
###################### VIDEO IMAGE STORAGE ######################
VIDEO_IMAGE_DEFAULT_FILENAME
=
'
images/video-images/default_video_image.png
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment