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

cmdLineTasks should provide proper unix return codes

    Details

    • Type: Improvement
    • Status: Done
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: pipe_base, pipe_drivers
    • Labels:
      None
    • Templates:
    • Story Points:
      1
    • Team:
      DM Science

      Description

      When a cmdLineTask fails it doesn't appear to return a non-0 exit code to the shell, making it hard to write shell scripts that chain commands together.

      Please fix this.

      E.g.

      $ bin/assembleCoadd.py /lustre/Subaru/SSP --rerun yasuda/SSP3.8.5_20150810_cosmos:rhl/brightObjectMasks --id tract=9813 patch=5,5 filter=HSC-I --selectId ccd=0..103 visit=1238..1246:2 -c doMaskBrightObjects=True && echo "Success" 
      ...
      2015-10-22T02:44:13: assembleCoadd FATAL: Failed in task initialization: 
       
      Your Eups versions have changed.  The difference is: 
      --- 
      +++ 
      @@ -48 +48 @@
      -obs_subaru                     HSC-3.11.0a_hsc  /data1a/ana/products2014/Linux64/obs_subaru/HSC-3.11.0a_hsc
      +obs_subaru                     LOCAL:/home/rhl/LSST/obs/subaru rev:ef3c892f clean-working-copy
      @@ -55 +55 @@
      -pipe_tasks                     LOCAL:/home/rhl/LSST/pipe/tasks-HSC-1342 rev:84b0f3c4 2 files changed, 5 insertions(+), 6 deletions(-)
      +pipe_tasks                     LOCAL:/home/rhl/LSST/pipe/tasks-HSC-1342 rev:9e8ed18b 2 files changed, 47 insertions(+), 42 deletions(-)
      @@ -60 +59,0 @@
      -pyflakes                       git              /home/rhl/Src/pyflakes
      Please run with --clobber-config to override
       
      Success
      

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  rhl Robert Lupton
                  Reporter:
                  rhl Robert Lupton
                  Reviewers:
                  Paul Price
                  Watchers:
                  Hsin-Fang Chiang, John Swinbank, Lauren MacArthur, Paul Price, Robert Lupton, Russell Owen
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Summary Panel