Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-27

Can't restart failed job when using jdbcrepository

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.0.0.Final
    • 1.0.0.CR2
    • jberet-core
    • None

      When using jdbcRepository, restarting a failed JOB is impossible.

      The following error happened:
      "Failed to restart job execution X, which had batch status STARTING."

      Here the batch status is wrong. In database the batch status is correct (FAILED), but the JdbcRepository don't set the batch status field and let it to its default value : STARTING.

      The solution is to set this field when getting back a jobExecution instance from the database.

              cfang@redhat.com Cheng Fang
              j.fougere Julien Fougere (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: