schedule not working ver 0.4.6

Report & discuss bugs found in 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
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

schedule not working ver 0.4.6

Post by binhex »

hi, im having problems getting the scheduler feature to work correctly, i am trying to achieve the following:-

limit download from 8am till 10pm mon to fri
all other times unlimited

my current schedule is set as follows:-

task1:- 08.01 saturday speedlimit 0
task2:- 08.01 sunday speedlimit 0
task3:- 22.00 daily speedlimit 0
task4:- 08.00 daily speedlimit 5

my problem is that the daily speedlimit at 8am mon to fri does not kick in and i wake to find im still downloading at full speed, if i pause and resume the queue, then the limit kicks in, any ideas why its not working?


many thanks for any replies!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: schedule not working ver 0.4.6

Post by shypike »

Can you set the logging level (Connections page) to "+Info" and run it another day.
The log files should contain messages like "Bandwidth limit set to xxx".
Can you check if these messages occur?

What happens if you add some extra speed limit tasks, like at 8:05, 8:10?
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

Re: schedule not working ver 0.4.6

Post by binhex »

shypike wrote: Can you set the logging level (Connections page) to "+Info" and run it another day.
The log files should contain messages like "Bandwidth limit set to xxx".
Can you check if these messages occur?

What happens if you add some extra speed limit tasks, like at 8:05, 8:10?


hi shypike, i will take a look at the logs on mon, cos obviously it being a weekend its currently set to unlimited, i will let you know the results.

thanks for your reply.
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

Re: schedule not working ver 0.4.6

Post by binhex »

shypike wrote: Can you set the logging level (Connections page) to "+Info" and run it another day.
The log files should contain messages like "Bandwidth limit set to xxx".
Can you check if these messages occur?

What happens if you add some extra speed limit tasks, like at 8:05, 8:10?
hi shypike, well i switched on additional logging and took a look at the logs and there is no mention of "bandwidth limit", i also changed my schedule slightly by removing the original 08.00 limit of 5 KB/s and adding in your suggestion of a speed limit task at 08.05, this however didn't make any difference and it was still running at full speed, if i do the usual trick of pause and resume on the queue then the speed limit took effect immediatly, wierd hu?. the other thing to note is that on the speed limit box on the queue page it was correctly showing the value of 5, it just wasn't taking effect. for now i guess i can get around this issue by putting in two additional tasks, a pause and a resume task, but i think maybe this issue should be moved into the bugs section of the forum?.

thanks for your help so far.
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

Re: schedule not working ver 0.4.6

Post by binhex »

hi guys, any comment on this as its still an outstanding bug on 0.4.6, the only way i have been able to get around this is to use my suggestion of inserting pause/resume tasks in the schedule in order to force the speed limit to kick in, maybe this could be moved to the bugs section of the forum so somebody could take a closer look and see why the scheduler doesnt work as expected?.

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

Re: schedule not working ver 0.4.6

Post by shypike »

So far my testing has revealed no problems.
The only thing I can think of is that the system is so busy downloading
that the scheduler doesn't get its turn.
But that would make your trick impossible.

I'll keep an eye on it, but so far I do not have a clue about the cause.
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

Re: schedule not working ver 0.4.6

Post by binhex »

shypike wrote: So far my testing has revealed no problems.
The only thing I can think of is that the system is so busy downloading
that the scheduler doesn't get its turn.
But that would make your trick impossible.

I'll keep an eye on it, but so far I do not have a clue about the cause.

i dont know if this is related but im having page refresh issues with sabnzbd+ as well, maybe its related to vista and ipv6 as i have seen you guys have had some issues with this, here is a little more detail on my system:-

platform:- windows vista ultimate with sp1 + patches
Browser:- Firefox ver 3.0.5
Sabnzbd+:- sabnzbd+ ver 0.4.6
Skin:- Default/Darkblue/None

Issue:- any changes to the config of sabnzbd+ causes browser to display "waiting" message and doesn't refresh the page, this affects any changes in the config sub menu items, if i force a refresh then the page loads and reflects the change made, ive noticed that if i pause the queue this does seem to help with the issue and the screen does refresh correctly MOST of the time. ive also tried to change the skin to "smpl" but this does not fix the issue, so it looks not to be an issue with the skin. i have also tried using ie as my browser and this also have the same issue so loks like its not browser specific.

thanks for your quick reply shypike :-)
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: schedule not working ver 0.4.6

Post by switch »

When changing certain config items sabnzbd has to do an internal restart. In the current version this can take a while when downloading as it isn't forceful enough. This has been greatly improved for version 0.5.
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

Re: schedule not working ver 0.4.6

Post by binhex »

switch wrote: When changing certain config items sabnzbd has to do an internal restart. In the current version this can take a while when downloading as it isn't forceful enough. This has been greatly improved for version 0.5.
ahh right, ok thats fine i can wait for ver 0.5, out of interest do you think the refresh bug could be related to the reason why the scheduled tasks aren't kicking in for me or do you think this is another issue?.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: schedule not working ver 0.4.6

Post by shypike »

For the scheduler there are really only two possible causes.
1. some programming error made by us or by the creator of the scheduler module
2. Starvation of the scheduler task due to heavy downloading

If you run Vista on a recent dual-core system with medium download speeds (say under 2500K/sec)
starvation is very unlikely.

The combination of ipv6 and Firefox has had problems in the past (not related to the scheduler),
due to problems in Firefox.

The "warm-restarts" after config changes (required by 0.4.6) are especially painful when you have
a large memory cache (because it is flushed to disk).
If you need to do many config changes, first pause, do all the changes, then resume.
This issue will be eliminated in 0.5.0 (except for skin-changes).
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

Re: schedule not working ver 0.4.6

Post by binhex »

ok well i dont think its starvation then as im running a quad core intel processor and my line is only a 8Mb/s line so max is approx 750KB/s, sp possibly a bug?

as for the warm-start issue im not currently specifying a cache as my download speeds aren't high enough to warrant it so im a bit confused as to why i see the issue with the browser refresh page issue, it doesn't matter though, as long as it get's fixed eventually i can just use your suggestion of pausing if i require any config changes for the time being :-).

if somebody could take a look at the scheduler module at some point that would be great as this is a bigger issue for me.

thanks again!.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: schedule not working ver 0.4.6

Post by switch »

This may not be a scheduler issue, but a speed limiting issue. Setting the limit to 5KB/s when a download is currently going fast may not get applied, I think this is due to some flawed maths in the speed limiting I coded.

I'll file a ticket and look into fixing very low speed limits on fast downloads. In the meantime you can choose one of two workarounds:
1)

Code: Select all

task4:- 08.00 daily pause
task5:- 08.01 daily speedlimit 5
task6:- 08.02 daily resume
2)

Code: Select all

task4:- 08.00 daily speedlimit 200
task5:- 08.01 daily speedlimit 50
task6:- 08.02 daily speedlimit 5
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: schedule not working ver 0.4.6

Post by shypike »

binhex wrote: im not currently specifying a cache as my download speeds aren't high enough to warrant
The cache reduces disk activity which may benefit the overall speed of your system.
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

Re: schedule not working ver 0.4.6

Post by binhex »

thanks for your comments shypike and switch, i will def be turning on caching and i have already used your suggestions regards the tasks, i look forward to version 0.5 :-)
Post Reply