...
Search for all courses in ContentStorecontentstore
Put the Course course ids in the migration status table with status as ‘Not-Migrated’, donot overwrite course ids if already present
Run the following code in a Try-Catch
...
Update the migration status for that course from ‘Not-Migrated’ to ‘In-Progress’
Search for videos
For each video, search for transcripts
For each transcript
push data to S3
If all the videos of a course have been processed, update course migration status in the migration status table from ‘In-Progress to Migrated’
Update the Feature Flag to switch the user to S3 \ transcripts
Exception Path:
...