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
bdc457a4
Commit
bdc457a4
authored
May 02, 2018
by
Gregory Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change HEAL for legacy video encodes.
parent
2f0d8d4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
control/veda_heal.py
+11
-1
control/veda_val.py
+6
-5
No files found.
control/veda_heal.py
View file @
bdc457a4
...
...
@@ -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 @
bdc457a4
...
...
@@ -237,10 +237,11 @@ class VALAPICall(object):
"""
# Defend against old/deprecated encodes
try
:
self
.
auth_dict
[
'val_profile_dict'
][
self
.
encode_profile
]
except
KeyError
:
return
if
self
.
encode_profile
:
try
:
self
.
auth_dict
[
'val_profile_dict'
][
self
.
encode_profile
]
except
KeyError
:
return
if
self
.
endpoint_url
:
for
p
in
self
.
auth_dict
[
'val_profile_dict'
][
self
.
encode_profile
]:
...
...
@@ -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