Uploaded image for project: 'JAPI'
  1. JAPI
  2. JAPI-426

HPCCWsWorkUnitsClient createAndRunWUFromECL looses WUID if error occurs

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Not specified
    • Resolution: Fixed
    • 8.2.x
    • 8.2.16
    • WSClient
    • None

    Description

      In HPCCWsWorkUnitsClient the function createAndRunWUFromECL

      If the wURun throws an error the wuid is lost.

      Would it be possible modify that function so that the WorkunitWrapper that is passed in is updated with the wuid before entering the try?

      https://github.com/hpcc-systems/hpcc4j/blob/master/wsclient/src/main/java/org/hpccsystems/ws/client/HPCCWsWorkUnitsClient.java#L1474

      Looks like it would wu.setWuid(compiledWU.getWuid()); just as you go into the if (compileWU != null) block.

      This would allow the calling code to catch the error if one occurs but to also retrieve the WUID that was created by looking at the WorkunitWrapper it originally passed in.

      Attachments

        Activity

          People

            rpastrana Rodrigo Pastrana
            joe.chambers Joseph Chambers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: