Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


YouTube deprecation feature is behind a course waffle flag `videos.deprecate_youtube` – example usage. The feature's implementation details can be iterated through Youtube Deprecation.

There is one dependency that is keeping YT deprecation from full rollout, it is HLS re-encoding for courses whose videos are missing HLS profile – stats and approach

Jira Legacy
serverSystem JIRA
serverId13fd1930-5608-3aac-a5dd-21b934d3a4b4
keyEDUCATOR-3744
is currently tracking this work to date.

Running and Monitoring re-encoding/backfill job

...

Code Block
languagepy
titlere-encode management command
python edx-video-pipeline/manage.py re_encode_videos_missing_hls --settings=VEDA.settings.production

Logs are in place which can be iterated through management command implementation for monitoring.

As you can see in the above image, course IDs were needed to configure, these candidate course IDs can be retrieved from 

Jira Legacy
serverSystem JIRA
serverId13fd1930-5608-3aac-a5dd-21b934d3a4b4
keyEDUCATOR-3744
 – link and can be parsed into space separated format via following code snippet:

Code Block
languagepy
titleParse Course IDs
def get_course_ids(limit, offset):
    course_ids = []
    with open('courses.txt', 'r') as courses_file:
        raw_courses = courses_file.read().split('|')
        for raw_course in raw_courses:
            course_id = raw_course.strip()
            if course_id:
                course_ids.append(course_id)
    course_ids = sorted(course_ids)[offset: offset+limit]
    return ' '.join(course_ids)