Cron on Last Day of Month

Hi all,

try to add a rule that should run on the last day of the month. Time to hurry :slight_smile:
I implemented this:

@when("Time cron 0 55 21 L * ?")

But I get this error

2022-01-31 21:50:49.295 [WARN ] [jsr223.jython.core.triggers ] - when: “Time cron 0 55 21 L * ?” could not be parsed. ‘0 55 21 L * ?’ is not a valid cron expression. See http://www.quartz-scheduler.org/documentation/quartz-2.1.x/tutorials/tutorial-lesson-06.

I’m wondering, because i find this example on the linked website:

0 15 10 L * ?

What is wrong with mine?

If you add * for the year?

So “0 15 10 L * ? *”

Same result:

“Time cron 0 55 21 L * ? *” could not be parsed. ‘0 55 21 L * ? *’ is not a valid cron expression. See http://www.quartz-scheduler.org/documentation/quartz-2.1.x/tutorials/tutorial-lesson-06.

Strange. Building the same CRON using the UI widget gives this:

Looks like its the jython parser that is complaining i.e. its cron template does not include “exotic” quartz syntax?

Workaround - trigger every day, and then see if its the last day of the month.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.