Hi,

There seems to be an issue with CronExpression using "L" (last day of month).

When I place the following code in my AppModule, the job is triggered at the appointed time, and then keeps executing over and over immediately in a seemingly infinite loop. I can work around by using a day-of-the-month number only, but would prefer using "L-10."

Is there any other work around?

Thanks,

Charles

    @Startup
    public static void scheduleJobs(PeriodicExecutor executor)
        {
        executor.addJob(
                new CronSchedule("0 55 8 L-9 * ? *"),
                "Testing",
                new Runnable() {
                    @Override
                    public void run() {
                    System.err.println("Executing Test...");
                    }
                });

        }


--
Charles Karow
Karow Associates <http://www.karow.com/>
Charles Karow Software Architect/Engineer
1.410.276.4016  • LinkedIn <http://www.linkedin.com/in/karow>
"Specializing in Fast, Reliable Web Applications"

Reply via email to