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

null JobExecutionEntity is included in the result when getting all sibling job executions belonging to the same job instance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.3.0.Beta7
    • 1.3.0.Beta6
    • jberet-rest-api
    • None

    Description

      When running the following REST API operation to obtain all sibling job executions belonging to the same job instance, the result includes certain number of null values, to pad to the number of job executions to match the count query param.

      Unable to find source-code formatter for language: text. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      curl 'http://localhost:8080/jobexecutions?jobExecutionId1=5&count=9'
      
      [ {
        "startTime" : 1509756205195,
        "endTime" : 1509756213208,
        "batchStatus" : "COMPLETED",
        "exitStatus" : "COMPLETED",
        "executionId" : 8,
        "href" : null,
        "createTime" : 1509756205186,
        "lastUpdatedTime" : 1509756213208,
        "jobParameters" : {
          "jobExecutionId" : "5"
        },
        "jobName" : "simple",
        "jobInstanceId" : 5,
        "stepExecutions" : [ ]
      }, {
        "startTime" : 1509756053500,
        "endTime" : 1509756173564,
        "batchStatus" : "STOPPED",
        "exitStatus" : "STOPPED",
        "executionId" : 5,
        "href" : null,
        "createTime" : 1509756053499,
        "lastUpdatedTime" : 1509756173564,
        "jobParameters" : {
          "jobXmlName" : "simple",
          "sleepSeconds" : "8"
        },
        "jobName" : "simple",
        "jobInstanceId" : 5,
        "stepExecutions" : [ ]
      }, null, null, null, null, null, null, null ]
      

      Attachments

        Activity

          People

            cfang@redhat.com Cheng Fang
            cfang@redhat.com Cheng Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: