Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

queuecleaner not cleaning everything up #10

Closed
ookla-ariel-ride opened this issue Nov 22, 2022 · 3 comments
Closed

queuecleaner not cleaning everything up #10

ookla-ariel-ride opened this issue Nov 22, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@ookla-ariel-ride
Copy link

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
Copy link
Owner

RandomNinjaAtk commented Nov 22, 2022

Are the failed items marked with a warning or failed?

arrQueueIds=$(echo "$arrQueueData" | jq -r 'select(.status=="completed") | select(.trackedDownloadStatus=="warning") | .id')

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....

@RandomNinjaAtk RandomNinjaAtk added the question Further information is requested label Nov 22, 2022
@RandomNinjaAtk RandomNinjaAtk self-assigned this Nov 22, 2022
@RandomNinjaAtk RandomNinjaAtk closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2022
@ookla-ariel-ride
Copy link
Author

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 added a commit that referenced this issue Dec 7, 2022
@RandomNinjaAtk
Copy link
Owner

RandomNinjaAtk commented Dec 7, 2022

So just ran into a case where the app refused to cleanup internally, so I have added it to the script: 057a45b

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

@RandomNinjaAtk RandomNinjaAtk added the enhancement New feature or request label Dec 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants