tubesync icon indicating copy to clipboard operation
tubesync copied to clipboard

Reset tasks generates 504, and then does not reset all the tasks

Open garbled1 opened this issue 2 years ago • 3 comments

If I run reset tasks from the GUI, it starts to reset the tasks, but then hits a 504 issue (which I think is basically a timeout issue) and then only resets the tasks for 1-3 channels. If I run it on the commandline it works just fine, but takes like 5 minutes or so.

I suspect the timeout in the webserver in the container is not long enough here, and doesn't allow the reset to complete when launched from the gui. Perhaps either increase the timeout, or fork the reset off, and return immediately, so the reset runs in the background?

garbled1 avatar Mar 28 '23 13:03 garbled1

Yeah this is a big ongoing task discussed in other issues. There are a lot of stacked problems with fixing it and no easy migration path so it's been kicked down the road quite a lot. This is technically a duplicate issue but I can see why you might not have found any of the old open issues covering this.

meeb avatar Mar 30 '23 03:03 meeb

Is there a CLI command to run this currently? Right now mines pretty broken and unable to be fixed without resetting the tasks. Currently running an external MySQL DB. Edit found the python3 ./manage.py reset-tasks command.

thecreativeone91 avatar Apr 15 '23 05:04 thecreativeone91

Yep, you found the command! Edit, full docs are at: https://github.com/meeb/tubesync/blob/main/docs/reset-tasks.md

meeb avatar Apr 15 '23 08:04 meeb