Automatically clear completed jobs from history

Want something added? Ask for it here.
Post Reply
Cpuroast
Release Testers
Release Testers
Posts: 69
Joined: December 15th, 2010, 11:19 pm

Automatically clear completed jobs from history

Post by Cpuroast »

Hi Shypike,

I was wondering if you could implement an option to clear completed jobs from the history as soon as they complete, so that the history only keeps failed jobs.

I've tried adding curl "http://localhost:8080/sabnzbd/api?mode= ... =completed" as a post-processing action, this works in part, but since it cannot remove the job the post-processing action is running on, it will always leave 1 completed job in the history.

Thanks!
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Automatically clear completed jobs from history

Post by shypike »

Set that same thing as an end-of-queue action.
Cpuroast
Release Testers
Release Testers
Posts: 69
Joined: December 15th, 2010, 11:19 pm

Re: Automatically clear completed jobs from history

Post by Cpuroast »

That works except when I want to use the "standby PC" end of queue option, then it wouldn't trigger the history grooming script.
Which is why I feel it should be outside of post-processing or end-of-queue options.

And also, queue_complete_pers ( off ) defaults to off, which suits me fine when I forget to remove the standby pc option when not needed.
But it also means I'd have to set the grooming script often or enable persistence which would be slightly bothersome when using the "standby pc" option.
Post Reply