Jump to content
We've recently updated our Privacy Statement, available here ×
  • Paused scheduled jobs restarted after upgrade


    Friendly User
    • Features: Scheduler Version: v8.0.0, v8.0.1, v8.0.2, v8.1, v8.1.0 Product: JasperReports® Server

    Scenario:

    After upgrading to version 7.9.2 or higher from 7.5.1 or lower you noticed that jobs that were previously paused are now resumed and running. JasperServer jobs are all running successfully but some older jobs changed their status to Running when they shouldn't

    Solution:

    The issue may appear when you run upgrade-samedb from previous version to the newer one. Check the records qrtz_simple_trigger and qrtz_trigger in your repository database for Instance Name field. You should see same jobs repeating under different instance names quartzScheduler and JasperServerScheduler. If that's the case, you can try to rename the:
    org.quartz.scheduler.instanceName=JasperServerScheduler
    to
    org.quartz.scheduler.instanceName=quartzScheduler

    in js.quartz.base.properties file.

    This will switch the scheduler to run all jobs as defined under quartzScheduler triggers and not create new JasperServerScheduler-owned triggers. Since you already have all the original quartzScheduler triggers in place this would ensure that all the old job configs will be used. The only issue is that some old jobs will be considered misfired and they will handle misfiring accordingly to the misfire policy set. This approach won't require you to modify any existing records in the DB, too.


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...