Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-video-pipeline
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-video-pipeline
Commits
ba772119
Unverified
Commit
ba772119
authored
Jun 19, 2018
by
Sofiya Semenova
Committed by
GitHub
Jun 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #109 from edx/sofiya/mp3
Add 'no_audio' optional flag to HEAL command
parents
1f45cdd0
8083abc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
bin/heal
+12
-3
control/veda_heal.py
+3
-0
No files found.
bin/heal
View file @
ba772119
...
@@ -57,7 +57,8 @@ def main():
...
@@ -57,7 +57,8 @@ def main():
{cmd} -c course_id
{cmd} -c course_id
{cmd} -s schedule
{cmd} -s schedule
{cmd} --process-translations
{cmd} --process-translations
[-i -c -s --process-translations]
{cmd} --no_audio
[-i -c -s --process-translations --no_audio]
Use --help to see all options.
Use --help to see all options.
'''
.
format
(
cmd
=
sys
.
argv
[
0
])
'''
.
format
(
cmd
=
sys
.
argv
[
0
])
...
@@ -84,6 +85,12 @@ def main():
...
@@ -84,6 +85,12 @@ def main():
action
=
'store_true'
action
=
'store_true'
)
)
parser
.
add_argument
(
'--no_audio'
,
help
=
'Removes audio_mp3 from encode list.'
,
action
=
'store_true'
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
veda_id
=
args
.
veda_id
veda_id
=
args
.
veda_id
...
@@ -118,7 +125,8 @@ def main():
...
@@ -118,7 +125,8 @@ def main():
VH
=
VedaHeal
(
VH
=
VedaHeal
(
video_query
=
Video
.
objects
.
filter
(
video_query
=
Video
.
objects
.
filter
(
edx_id
=
veda_id
.
strip
()
edx_id
=
veda_id
.
strip
()
)
),
no_audio
=
args
.
no_audio
)
)
VH
.
send_encodes
()
VH
.
send_encodes
()
return
return
...
@@ -130,7 +138,8 @@ def main():
...
@@ -130,7 +138,8 @@ def main():
institution
=
course_id
[
0
:
3
],
institution
=
course_id
[
0
:
3
],
edx_classid
=
course_id
[
3
:
8
]
edx_classid
=
course_id
[
3
:
8
]
)
)
)
),
no_audio
=
args
.
no_audio
)
)
VH
.
send_encodes
()
VH
.
send_encodes
()
return
return
...
...
control/veda_heal.py
View file @
ba772119
...
@@ -45,6 +45,7 @@ class VedaHeal(object):
...
@@ -45,6 +45,7 @@ class VedaHeal(object):
self
.
freezing_bug
=
kwargs
.
get
(
'freezing_bug'
,
False
)
self
.
freezing_bug
=
kwargs
.
get
(
'freezing_bug'
,
False
)
self
.
val_status
=
None
self
.
val_status
=
None
self
.
retry_barrier_hours
=
24
self
.
retry_barrier_hours
=
24
self
.
no_audio
=
kwargs
.
get
(
'no_audio'
,
False
)
def
discovery
(
self
):
def
discovery
(
self
):
self
.
video_query
=
Video
.
objects
.
filter
(
self
.
video_query
=
Video
.
objects
.
filter
(
...
@@ -157,6 +158,8 @@ class VedaHeal(object):
...
@@ -157,6 +158,8 @@ class VedaHeal(object):
)
.
determine_encodes
()
)
.
determine_encodes
()
try
:
try
:
if
uncompleted_encodes
:
if
uncompleted_encodes
:
if
self
.
no_audio
and
'audio_mp3'
in
uncompleted_encodes
:
uncompleted_encodes
.
remove
(
'audio_mp3'
)
uncompleted_encodes
.
remove
(
'review'
)
uncompleted_encodes
.
remove
(
'review'
)
except
KeyError
:
except
KeyError
:
pass
pass
...
...
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