RandomNinjaAtk / docker-sonarr-extended

Sonarr (develop) with bash scripts to automate and extend functionality.
GNU General Public License v3.0
66 stars 15 forks source link

queuecleaner not cleaning everything up #10

Closed ookla-ariel-ride closed 1 year ago

ookla-ariel-ride commented 1 year ago

I have noticed queuecleaner script is not cleaning up all failed downloads. it just says:

QueueCleaner :: 1.0.007 :: No items in queue to clean up...

I have about 75 failed items in the queue. Occasionally it might clean up a couple of them. What should I provide to help debug this?

RandomNinjaAtk commented 1 year ago

Are the failed items marked with a warning or failed?

https://github.com/RandomNinjaAtk/docker-sonarr-extended/blob/a459d093973f92262d004ddee9950ffe33e3fe52/root/scripts/QueueCleaner.bash#L32

Right now it only removes items that are considered completed, but with a warning state. Which I believe is indicated by a yellow icon/highlight.

Edit: For removing failed downloads, sonarr has a built in option to do that in the advance settings for the Download Clients configuration page....

ookla-ariel-ride commented 1 year ago

thanks for the update on this. Your feature works great, the built-in option of sonarr doesn't seem to work that well. Would be great if you extended your feature to cover failed downloads as well, but understand if you won't.

RandomNinjaAtk commented 1 year ago

So just ran into a case where the app refused to cleanup internally, so I have added it to the script: https://github.com/RandomNinjaAtk/docker-sonarr-extended/commit/057a45b54d115e294c31291a9ed00180f675f9f7

It can now remove queued items that are "Completed, with warning status" and "Failed" status.