IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9032


Ignore:
Timestamp:
Sep 28, 2006, 1:33:42 PM (20 years ago)
Author:
eugene
Message:

updates

Location:
trunk/ippTasks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/notes.txt

    r8193 r9032  
     1
     22006.08.28
     3
     4- ipptools need to use expID:camera:telescope as unique key (ie, not expID alone)
     5- p0tool -pendingimfile -simple needs to report the expKey (ie, not expID)
     6-
     7
    18
    29This directory contains the PanTasks scripts which define the steps
  • trunk/ippTasks/phase0.pro

    r8691 r9032  
    66## STATE EXP_KEY CLASS CLASS_ID URI-FITS
    77## queue keys are counted from 0
     8
     9queueinit Phase0PendingImfiles
     10queueinit Phase0PendingExposures
     11if ($?network == 0)
     12  $network = 1
     13end
    814
    915# select images ready for phase0 analysis
     
    1824  periods      -timeout 30
    1925
     26  stdout phase0.imfile.log
     27  stderr phase0.imfile.log
     28
    2029  # success
    2130  task.exit    0
    2231    local i Nqueue
     32
     33    # save stdout and stderr
    2334
    2435    # compare output with Phase0PendingImfiles queue
     
    3546
    3647  # locked list
    37   task.exit    1
    38     echo       "phase0 pending imfiles: exec failure"
    39   end
    40 
    41   # default exit status
    42   task.exit    default
    43     echo       "phase0 pending imfiles: unknown exit status: $EXIT"
    44   end
    45 
    46   # operation times out?
    47   task.exit    timeout
    48     echo       "phase0 pending imfiles: timeout"
     48  task.exit    default
     49    echo "*** phase0 pending imfiles: failure"
     50  end
     51
     52  # operation times out?
     53  task.exit    timeout
     54    echo "*** phase0 pending imfiles: timeout"
    4955  end
    5056end
     
    7076    queuepush Phase0PendingImfiles -replace -key 1 "RUN $line"
    7177
    72     ## the Phase0PendingImfiles queue contains:
     78    ## the Phase0PendingImfiles queue contains (line has popped STATE)
    7379    ## STATE EXP_KEY CLASS CLASS_ID URI-FITS
    7480    list word -split $line
     
    8288    # host alala -required
    8389    ## XXX need to determine the appropriate host
    84     host anyhost
     90    # host anyhost
     91    host local
     92    echo "running phase0.imfile.process"
     93
     94    echo "setting stdout, stderr: $word:1.$word:3.log"
     95    # do something better with this output target
     96    stdout $word:0.$word:2.log
     97    stderr $word:0.$word:2.log
    8598
    8699    # create the command line
     100    echo "setting options $line"
    87101    options "$line"
    88     command phase0imfile.pl $word:1 $word:3 $word:$4
     102
     103    echo command phase0imfile.pl --exp_id $word:0 --class_id $word:2 --uri $word:3
     104    command phase0imfile.pl --exp_id $word:0 --class_id $word:2 --uri $word:3
    89105  end
    90106
     
    120136  periods      -exec 5
    121137  periods      -timeout 30
     138
     139  stdout phase0.exp.log
     140  stderr phase0.exp.log
     141
     142  task.exec
     143    break
     144  end
    122145
    123146  # success
     
    137160  end
    138161
    139   # locked list
    140   task.exit    1
    141     echo       "phase0 pending exp: exec failure"
    142   end
    143 
    144162  # default exit status
    145163  task.exit    default
    146     echo       "phase0 pending exp: unknown exit status: $EXIT"
     164    echo       "phase0 pending exp: failure"
    147165  end
    148166
     
    177195    list word -split $line
    178196
     197    # do something better with this output target
     198    stdout $word:1.log
     199    stderr $word:1.log
     200
    179201    # specify choice of remote host:
    180202    # 'anyhost' specifies random remote host
     
    185207    # host alala -required
    186208    ## XXX need to determine the appropriate host
    187     host anyhost
     209    host local
     210    # host anyhost
    188211
    189212    # create the command line
Note: See TracChangeset for help on using the changeset viewer.