Scheduler Cron not working when using mwscmExtendedSecond

Home Forums kbmMW Scheduler Cron not working when using mwscmExtendedSecond

Viewing 1 reply thread
  • Author
    Posts
    • #54898
      jet2050
      Participant

      Hello Kim

      I found that when using then Scheduler with Cron and mwscmExtendedSecond the first element is treated as minutes instead of seconds, if I instead use mwscmExtendedSecondAndYear then it works as expected.

      Best regards

      Job Espejel.

       

    • #54899
      jet2050
      Participant

      Update:

      Cron and seconds are not working correctly, even with mwscmExtendedSecondAndYear

      Please try something like

      */45 * * * * * *
      /45 * * * * * *
      45 * * * * * *

      or

      0 */1 * * * * *

      I give up trying to make it work with seconds.

      Reverting to the default format.

      Regards

      Job Espejel

      • #54943
        kimbomadsen
        Keymaster

        Hi,

        You are right. There is a bug.

        The fix:

        Find function TkbmMWScheduleRange.GetInterval and make sure it looks like this:

        function TkbmMWScheduleRange.GetInterval:integer;
        begin
             case FType of
                  mwsrtValues:
                  begin
                       Result:=kbmMWGCD(FValues) div 2;
                       if Result=0 then
                          Result:=1;
                  end;
             else
                 Result:=1;
             end;
        end;
        

        It is fixed in next release.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.