sab max queue length

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
jbates58
Newbie
Newbie
Posts: 33
Joined: October 16th, 2012, 5:53 pm

sab max queue length

Post by jbates58 »

make max queue length.

hi all

i am running sab on a WD mybook Live home NAS. while it does the job ok, i would like to know if its possible to make there be a maximum queue length in sb? as the unit stops working when there is any more than 20-25 files in the queue. i would like to limit it to say 2-5 items, and then just have it scan a folder and add them as need be.

the specs of the MBL are: 800/1000Mhz processor (i cant remember) and 256mb of ram.
as there is stuff all ram, i would like to optomise it as much as possible.

cheers

Jason
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: sab max queue length

Post by shypike »

The problem is in the RAM.
Each job in the queue requires in-memory administration.
There's no mechanism to limit the amount of elements in the queue.
jbates58
Newbie
Newbie
Posts: 33
Joined: October 16th, 2012, 5:53 pm

Re: sab max queue length

Post by jbates58 »

Hmmmm. Ok then. What about a script to tell it to search the black hole then? And is there a way to make it so that it will only add 1 file? Thus keepi g the queue at 2 files, when one completes run script. While the other downloads. Etc... rinse and repeat?

Cheers

Jason.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: sab max queue length

Post by jcfp »

jbates58 wrote:Hmmmm. Ok then. What about a script to tell it to search the black hole then? And is there a way to make it so that it will only add 1 file? Thus keepi g the queue at 2 files, when one completes run script. While the other downloads. Etc... rinse and repeat?
Only way I could think of to implement something like this is by having an external program control queue access. For example by running a script every x minutes (using crontab or so), looking up the queue length via sab's api and then feed it the appropriate number of new jobs. Obviously, nzb files would initially be placed in some kind of 'nzb reservoir' that isn't scanned by sab. Doing all this does require some level of os knowledge and scripting skills though.
jbates58
Newbie
Newbie
Posts: 33
Joined: October 16th, 2012, 5:53 pm

Re: sab max queue length

Post by jbates58 »

Couldn't I just make a script that moves 1 file from a holding folder into the black hole folder, and then set that script as a post processing script that runs after the download is complete?
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: sab max queue length

Post by jcfp »

That creates a deadlock whenever the queue goes empty. (no more post-processing = no new jobs ever added)
Post Reply