Page 1 of 1
sab max queue length
Posted: December 9th, 2013, 6:30 am
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
Re: sab max queue length
Posted: December 9th, 2013, 3:16 pm
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.
Re: sab max queue length
Posted: December 10th, 2013, 6:49 am
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.
Re: sab max queue length
Posted: December 10th, 2013, 9:06 am
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.
Re: sab max queue length
Posted: December 10th, 2013, 7:02 pm
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?
Re: sab max queue length
Posted: December 11th, 2013, 6:47 am
by jcfp
That creates a deadlock whenever the queue goes empty. (no more post-processing = no new jobs ever added)