Page 1 of 1

Schedule ignored on SABnzbd startup

Posted: November 13th, 2012, 2:24 pm
by PumpkinEater
At the moment I run SABnzbd manually at times that suit me, but I plan to run SABnzbd as an automatic service on a headless machine and so the Schedule feature looks useful. However, I cannot get the Schedule to do what I want. Either I'm misunderstanding how it's supposed to work (more likely), or there's something wrong with it (less likely).

Version: 0.7.6Beta1
Install-type: Linux repository jcfp/ppa
OS: Linux Mint Maya 32-bit
Skin: smpl - black
Firewall Software: None (using separate hardware firewall)
IPv6: No
Reproducible? Yes (for me, at least)

According to both http://wiki.sabnzbd.org/configure-scheduling and http://sabnzbd.wikidot.com/configure-scheduling-0-7, on startup, SABnzbd will evaluate all schedules and determine the current pause/resume state (italics mine).

I want to set up the following schedule: download between midnight and 08:00 Monday to Friday, and all day/night on Saturday and Sunday. Or, in other words, do not download between 08:00 and midnight on weekdays.

I've currently configured the following schedule:
08:00 Weekdays Pause
00:01 Daily Resume

I've also tried:
08:00 Weekdays Pause
00:01 Tuesday, Wednesday, Thursday, Friday, Saturday Resume

Neither schedule works. As soon as SABnzbd is launched manually the queue starts downloading regardless of the day or time.

If I understand the Scheduling page of the wiki correctly, launching SABnzbd at 18:00 on a Tuesday evening should cause the download queue to pause immediately, because 18:00 on a Tuesday falls between 08:00 on one weekday (Pause) and 00:01 the following weekday (Resume).

So what's going wrong? Am I not understanding how the Schedule function works? Is the Schedule function broken?

Re: Schedule ignored on SABnzbd startup

Posted: November 13th, 2012, 2:48 pm
by shypike
Silly mistake when we added multiple days per schedule.
The evaluation at startup wasn't changed accordingly.
Will be fixed in 0.7.6.

Temp work-around: use schedules with just one day active.
Yes, you'll need a lot of schedules :(

Re: Schedule ignored on SABnzbd startup

Posted: November 13th, 2012, 3:02 pm
by PumpkinEater
Thank you for the explanation. Setting individual schedules for each day works. I'll test it again when 0.7.6 is released.

Re: Schedule ignored on SABnzbd startup

Posted: November 23rd, 2012, 5:53 am
by PumpkinEater
I've just had a chance to test it; the schedule is now behaving as expected. Thank you for fixing it.