This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Audio waveform cache-warming Django command #529
Labels
🤖 aspect: dx
Concerns developers' experience with the codebase
🌟 goal: addition
Addition of new feature
🟨 priority: medium
Not blocking but should be addressed soon
Description
Related to WordPress/openverse-catalog#510
We now have a table where audio waveforms are cached, but this table is not yet fully populated. We have plans to move this processing upstream into the catalog (WordPress/openverse#731).
For the time being, we should create a Django command that can be run with
python manage.py <command>
which will iterate through all audio records and generate waveforms for them. Here is an outline of the necessary code:The above code example uses
tqdm
, which I don't believe is a dependency we have right now. We could add it for this use and remove it after, since the progress bar and estimated time to completion are very useful.We have ~14k records, and a test run on staging showed that this could take anywhere from 12-48 hours.
Alternatives
Additional context
Implementation
The text was updated successfully, but these errors were encountered: