Uploaded image for project: 'TorqueBox'
  1. TorqueBox
  2. TORQUE-1077

multiple scheduled jobs fail when one of them has singleton=false

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.1
    • Component/s: Jobs
    • Labels:
      None

      Description

      when defining two scheduled jobs to run I observed the following:

      job Job::A do
      cron "0 */2 * * * ?"
      end

      job Job::B do
      cron "0 */15 * * * "
      singleton false
      end

      the second job will fail with a

      11:50:00,002 INFO [org.quartz.core.JobRunShell] (JobScheduler$console-knob.yml_Worker-2) Job console-knob.yml.job_B threw a JobExecutionException: : org.quartz.JobExecutionException: java.lang.NullPointerException [See nested exception: java.lang.NullPointerException]

      turning singleton to true fixes the issue.

      Note that while running in clustered mode there is only one machine in the cluster.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  goldmann Marek Goldmann
                  Reporter:
                  kolbrich Kevin Olbrich
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: