• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Schedule delay on rules?

Scheduled Pinned Locked Moved Firewalling
2 Posts 2 Posters 840 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    fernando36
    last edited by Aug 29, 2013, 3:21 PM

    My rule is taking 10-15 minutes after the scheduled end to wear out.
    It is a rule to block some website from LAN. It works from 9 to 5 and has a break for lunch time.
    The Current date/time on Dashboard is correct.
    Am I missing anything?

    1 Reply Last reply Reply Quote 0
    • P
      phil.davis
      last edited by Aug 31, 2013, 12:29 PM

      The schedule times include the last minute specified. If you make the rule go to 1700, then that includes up to 1700:59.9999 seconds. The cron job that manages the scheduled rules runs every 15 minutes. It wakes up at 1700 (and 1 second), sees that it is still within the time for your scheduled rule to be active, and leaves it active. (It should be active only for the next 59 seconds LOL). The cron job does not run again for 15 minutes, so the rule stays active until 1715.
      Solution: for end time use 16 59.

      Longer term solution: fix this up in the code so that end times 00, 15, 30 and 45 really mean hh:59:59.999, hh:14:59.999, hh:29:59.999, hh:44:59.999

      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received