Project

General

Profile

Actions

Bug #2614

closed

Scheduler bug - fires off on date not matched correctly

Added by Sangye Ngawang over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Rules / NAT
Target version:
Start date:
08/28/2012
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1
Affected Architecture:
amd64

Description

I use Scheduler to trigger many rules, today the rules were all activated
The last date that was still in there was 8 August, today on 28 August it activated - it was clear that 28 August wasn't listed.
So i am guessing a date matching routine has a bug.


Files

Actions #1

Updated by Ermal Luçi over 11 years ago

Can you provide some examples from your config to debug this easily?

Actions #2

Updated by Sangye Ngawang over 11 years ago

No i can't give my config - but ill add the scheduled tasks and hope that this is related to the scheduler menu item. Full config too private can't give you all that.
What do you need to see, the scheduler? That record is deleted, sure you can just create an 8 August 2012 and set the date to 28th and see it kick in.

The Rules trigger from the scheduler - i don't think there is anything to see there. They work, they trigger according to the scheduler. No complaints except that today it went off when it wasn't supposed to.

Actions #3

Updated by Ermal Luçi over 11 years ago

I would need to see the scheduler section to validate that nothing is missing with that.

Actions #4

Updated by Sangye Ngawang over 11 years ago

Attached is a screengrab from the scheduler section, but i have to change it now for a scheduled streaming event tomorrow.
---------------

Actions #5

Updated by Jim Pingle over 11 years ago

You can go back under Diagnostics > Backup/Restore on the Config History tab and get an older version of your config from before you had to change it, and then copy out just the scheduler section from there.

Actions #6

Updated by Sangye Ngawang over 11 years ago

That is in fact what i already did, nevertheless the scheduler fired off on 28 August while it was set as you see there. Thats a bug. Done my best to report it.

Actions #7

Updated by Phillip Davis over 11 years ago

For a start, this code looks odd in /etc/inc/filter.inc at 3015:
if($timeday['month'])
$month = $timeday['month'];
else
$week = "";

That will allow the month in some previous entries to carry forward to the next entry that does not specify a month. I have submitted a pull request for the problems that I can see.

Actions #8

Updated by Renato Botelho over 11 years ago

  • Assignee set to Renato Botelho
  • Status changed from New to Feedback

Could you please confirm the issue persists on recent snapshots?

Actions #10

Updated by Renato Botelho about 11 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF