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
3d7d099e
Unverified
Commit
3d7d099e
authored
May 03, 2018
by
Gregory Martin
Committed by
GitHub
May 03, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #101 from edx/yro/EDUCATOR-2786
Change HEAL for legacy video encodes.
parents
2f0d8d4b
bdc457a4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
control/veda_heal.py
+11
-1
control/veda_val.py
+2
-1
No files found.
control/veda_heal.py
View file @
3d7d099e
...
...
@@ -55,10 +55,20 @@ class VedaHeal(object):
hours
=
HEAL_END
)
)
for
v
in
self
.
video_query
:
LOGGER
.
info
(
'[HEAL] {studio_id} | {video_id}: Determining Missing Encodes'
.
format
(
studio_id
=
v
.
studio_id
,
video_id
=
v
.
edx_id
,
))
self
.
send_encodes
()
def
send_encodes
(
self
):
"""
Unified function to enqueue videos with missing encodes
Ingest/HEAL both call this function
"""
# TODO: Refactor to common location
for
v
in
self
.
video_query
:
encode_list
=
self
.
determine_fault
(
video_object
=
v
)
# Using the 'Video Proto' Model
...
...
control/veda_val.py
View file @
3d7d099e
...
...
@@ -237,6 +237,7 @@ class VALAPICall(object):
"""
# Defend against old/deprecated encodes
if
self
.
encode_profile
:
try
:
self
.
auth_dict
[
'val_profile_dict'
][
self
.
encode_profile
]
except
KeyError
:
...
...
@@ -270,7 +271,7 @@ class VALAPICall(object):
try
:
self
.
auth_dict
[
'val_profile_dict'
][
final
.
encode_profile
.
product_spec
]
except
KeyError
:
return
continue
for
p
in
self
.
auth_dict
[
'val_profile_dict'
][
final
.
encode_profile
.
product_spec
]:
test_list
.
append
(
dict
(
url
=
str
(
final
.
encode_url
),
...
...
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