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
sab max queue length
Forum rules
Help us help you:
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.
Re: sab max queue length
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.
Each job in the queue requires in-memory administration.
There's no mechanism to limit the amount of elements in the queue.
Re: sab max queue length
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.
Cheers
Jason.
Re: sab max queue length
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 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?
Re: sab max queue length
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?
Re: sab max queue length
That creates a deadlock whenever the queue goes empty. (no more post-processing = no new jobs ever added)