The first version of the pipeline was not the naive one. I had already read enough horror stories to know that calling yt-dlp and ffmpeg inside a Flask request handler would tie up a Gunicorn worker for the length of a download, so the first commit already had a Redis queue and an RQ worker. Th...
Source: [Dev.to](https://dev.to/tubemixlab/what-broke-when-i-put-yt-dlp-and-ffmpeg-behind-a-job-queue-and-what-fixed-it-4fah)