Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2558

Embedded pig with python: No way to terminate program gracefully and set OS exit code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.9.1, 0.10.0
    • None
    • None
    • None

    Description

      With python embedded pig control structures, there is no way to terminate the program in the middle and set the os exit code

      Here is the Pseudocode:

      block 1:
      if condition check is true:
      do nothing and exit program with code 3
      else:
      call a pig

      block 2:
      if condition check is true:
      do nothing and exit program with code 0
      else:
      call a pig

      block N:
      ....

      sys.exit(...) doesn't work. It is treated as exception even with sys.exit(0).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lih Huiming Li
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: