IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 30, 2006, 12:27:01 PM (20 years ago)
Author:
eugene
Message:

basic detrend stages work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/phase0.pro

    r9032 r9081  
    1111if ($?network == 0)
    1212  $network = 1
     13end
     14if ($?parallel == 0)
     15  $parallel = 0
    1316end
    1417
     
    5962task           phase0.imfile.process
    6063  periods      -poll 0.5
    61   periods      -exec 1.0
    62   periods      -timeout 5
     64  periods      -exec 1
     65  periods      -timeout 60
    6366
    6467  task.exec
     
    8083    list word -split $line
    8184
    82     # specify choice of remote host:
    83     # 'anyhost' specifies random remote host
    84     # if we needed to specify a host explicitly, use a command like
    85     # one of the following.  the -required forces execution on the
    86     # named host, and blocks the task until the host is available
    87     # host kiawe
    88     # host alala -required
    89     ## XXX need to determine the appropriate host
    90     # host anyhost
    91     host local
    92     echo "running phase0.imfile.process"
    93 
    94     echo "setting stdout, stderr: $word:1.$word:3.log"
     85    # specify choice of remote host:(need to choose based on chips)
     86    if ($parallel)
     87      host anyhost
     88    else
     89      host local
     90    end
     91
    9592    # do something better with this output target
    9693    stdout $word:0.$word:2.log
     
    9895
    9996    # create the command line
    100     echo "setting options $line"
    10197    options "$line"
    102 
    10398    echo command phase0imfile.pl --exp_id $word:0 --class_id $word:2 --uri $word:3
    10499    command phase0imfile.pl --exp_id $word:0 --class_id $word:2 --uri $word:3
     
    113108  # default exit status
    114109  task.exit    default
     110    echo "failure for phase0imfile.pl: $options:0"
    115111    queuepush Phase0PendingImfiles -replace -key 1 "FAIL $options:0"
    116112  end
     
    118114  # operation times out?
    119115  task.exit    timeout
    120     queuepush Phase0PendingImfiles -replace -key 1 "FAIL $options:0"
     116    echo "timeout for phase0imfile.pl: $options:0"
     117    queuepush Phase0PendingImfiles -replace -key 1 "TIMEOUT $options:0"
    121118  end
    122119end
     
    139136  stdout phase0.exp.log
    140137  stderr phase0.exp.log
    141 
    142   task.exec
    143     break
    144   end
    145138
    146139  # success
     
    196189
    197190    # do something better with this output target
    198     stdout $word:1.log
    199     stderr $word:1.log
    200 
    201     # specify choice of remote host:
    202     # 'anyhost' specifies random remote host
    203     # if we needed to specify a host explicitly, use a command like
    204     # one of the following.  the -required forces execution on the
    205     # named host, and blocks the task until the host is available
    206     # host kiawe
    207     # host alala -required
    208     ## XXX need to determine the appropriate host
    209     host local
    210     # host anyhost
     191    stdout $word:0.log
     192    stderr $word:0.log
     193
     194    # specify choice of remote host:(need to choose based on chips)
     195    if ($parallel)
     196      host anyhost
     197    else
     198      host local
     199    end
    211200
    212201    # create the command line
    213202    options "$line"
    214     command phase0exp.pl $word:1
     203    echo command phase0exp.pl $word:0
     204    command phase0exp.pl $word:0
    215205  end
    216206
     
    228218  # operation times out?
    229219  task.exit    timeout
    230     queuepush Phase0PendingExposures -replace -key 1 "FAIL $options:0"
    231   end
    232 end
     220    queuepush Phase0PendingExposures -replace -key 1 "TIMEOUT $options:0"
     221  end
     222end
     223
     224## XXX add a global path to output files 
Note: See TracChangeset for help on using the changeset viewer.