Advanced scheduled issue trigger

Issue #141 closed
Jack Aragones created an issue

Hello,

I am trying to set a quarterly interval task and receive an error when using the expression:

0 0 9 5 1/3 *

the error indicates: Incorect cron expression! (incorect s/b incorrect)

The link mentioned in previous posts to the Quartz tutorial no longer work and I didn't find details in the documentation.

Thank you.

Comments (6)

  1. jost

    Hi Jack,

    Your problem is due to lack of some sub-expression. I think that you forgot about the day of week. That mean you expression should look like:

    0 0 9 5 1/3 ? *

    That mean your issue will created every first 5 day of quarter at 9 o clock ;). Example next fire time for above expression:

    1. Wednesday, October 5, 2016 9:00 AM
    2. Thursday, January 5, 2017 9:00 AM
    3. Wednesday, April 5, 2017 9:00 AM
    4. Wednesday, July 5, 2017 9:00 AM
    5. Thursday, October 5, 2017 9:00 AM

    You can find more information about cron expression here:

    http://www.quartz-scheduler.org/documentation/quartz-2.1.x/tutorials/crontrigger.html

    What more here You can find cron maker - on this page you can easly create or validate cron expressions:

    http://www.cronmaker.com

    I hope this will help. For now I will resolve this issue but please feel fre to reopen it in case of any other problem ;)

    Have nice day,

    Jacek.

  2. Log in to comment