Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-10761

Failed CmdLineTask does not give nonzero exit code

    Details

    • Type: Story
    • Status: Invalid
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: pipe_base
    • Labels:
      None
    • Templates:
    • Team:
      Data Access and Database

      Description

      A fatal TaskError in CmdLineTasks does not return a non-zero exit code unless --doraise is specified. For example, this command (taken from DM-10755) failed with a TaskError from
      here and can be reproduced on lsst-dev:

      forcedPhotCcd.py /datasets/hsc/repo --rerun DM-10404/WIDE:private/username/xxx --id ccd=100 visit=32254
      

      This gave an exit code of 0. If --doraise is added to the command line, it gave 1. The stack w_2017_17 was used.

      This seems very relevant to DM-4141, or arguably duplicate, although that ticket seemed to focus on the precall part.

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  hchiang2 Hsin-Fang Chiang
                  Watchers:
                  Hsin-Fang Chiang, Paul Price, Robert Lupton, Russell Owen
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Summary Panel