AndTrigger for Cron with Start and End datetime #637
-
Hello all! This is a great library! Thank you! I am attempting to set up a job that will run on certain days at a certain time, but has an end date where it will no longer run. Here is what I am currently trying:
This prints out:
However, at 14:45 (my local time) the job does not run. I am assuming it has to do with not setting the interval in the Another note, I am using a postgres store and when I start my application back up with this job in the db, the application does not start up completely until I delete this job manually from the db. I am using Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Is there a reason why you're not specifying start/end times in the cron trigger itself? That would at least be a lot simpler. If you can explain exactly what you're trying to achieve with this trigger, I can probably help. |
Beta Was this translation helpful? Give feedback.
-
Wow, somehow I had overlooked those arguments for the CronTrigger! That is MUCH simpler. Apologies for the dumb question. |
Beta Was this translation helpful? Give feedback.
Is there a reason why you're not specifying start/end times in the cron trigger itself? That would at least be a lot simpler. If you can explain exactly what you're trying to achieve with this trigger, I can probably help.