Results 1 to 2 of 2

Thread: Running only one instance of a quartz Job at a time

  1. #1
    Join Date
    Nov 2007
    Posts
    1

    Default Running only one instance of a quartz Job at a time

    Hi,

    I want to activate the quartz scheduler in a spring container, but since the duaration of execution is not fixed (not even close) I need a constraint that will ensure that no other instance of that job is fired if another has not finished, How do I do that?

    Can I control at runtime the scheduling policy i.e. change the quartz cron expression?

    Thanks,

    Barak.

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    There is some discussion of this in the Quartz tutorial, e.g. StatefulJobs.
    http://www.opensymphony.com/quartz/w...alLesson3.html
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •