Announcement Announcement Module
Collapse
No announcement yet.
Spring 3.0 Scheduler: how to not fire a method if it's still running? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring 3.0 Scheduler: how to not fire a method if it's still running?

    Hi,

    I have a method run every 5 mins like this:
    Code:
    @Scheduled(cron = "* 0/5 * * * *") public void test() {}
    Is there any option to tell Spring not to execute the test method if it's still running from the previous time? Quartz has some option for that, but I don't want to use Quartz this time because Spring Scheduler is enough in this case.

    Thank you.
Working...
X