From 2287ca69f4d53d38fb2bfd88a3fdd0cc839046ee Mon Sep 17 00:00:00 2001 From: fishnux Date: Sun, 12 Nov 2023 04:45:18 +0000 Subject: [PATCH] Update advanced.md: Bulk clear errors on download queue (#24) * Update advanced.md: Bulk clear errors on download queue * clarify where to run this from --------- Co-authored-by: Simon --- mkdocs/docs/advanced.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/mkdocs/docs/advanced.md b/mkdocs/docs/advanced.md index 648835c..14c5f17 100644 --- a/mkdocs/docs/advanced.md +++ b/mkdocs/docs/advanced.md @@ -140,3 +140,19 @@ pip install \ https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz ``` This is obviously particularly likely to create problems. Also note that the `--version` command will only show the latest regular release, not a nightly mention. + +## Erase errors from download queue +Sometimes the download queue might have some videos that have errored due to rate limits. Videos that have errors won't be retried in a future download queue re-run unless you individually click "Download now" for each individual video. In order to bulk clear the errors from the download queue one needs to execute the following command from within the Tube Archivist container: +```bash +curl -X POST "$ES_URL/ta_download/_update_by_query?pretty" -u elastic:$ELASTIC_PASSWORD -H 'Content-Type: application/json' -d' +{ + "script": { + "source": "ctx._source.message = null", + "lang": "painless" + }, + "query": { + "match_all": {} + } +} +' +```