IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2006, 12:36:59 PM (20 years ago)
Author:
eugene
Message:

updates to match new refactoring of tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/detrend.stack.pro

    r9081 r9104  
    1515## STATE DET_ID ITER TYPE CLASS_ID CAMERA
    1616
    17 queueinit DetrendClassIDtoStack
     17queueinit DetrendStackClass
    1818if ($?network == 0)
    1919  $network = 1
     
    2424
    2525# select images ready for copy
    26 # new entries are added to queue DetrendClassIDtoStack
     26# new entries are added to queue DetrendStackClass
    2727# compare the new list with the ones already selected
    2828task           dettool.stack.load
     
    5454      $CLASS_ID = $word:3
    5555      $CAMERA   = $word:4
    56       echo queuepush DetrendClassIDtoStack -uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID $CAMERA"
    57       queuepush DetrendClassIDtoStack -uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID $CAMERA"
     56      echo queuepush DetrendStackClass -uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID $CAMERA"
     57      queuepush DetrendStackClass -uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID $CAMERA"
    5858    end
    5959
    6060    # delete existing entries which are DONE
    61     queuedrop DetrendClassIDtoStack -key 0 DONE
     61    queuedrop DetrendStackClass -key 0 DONE
    6262  end
    6363
    6464  # locked list
    65   task.exit    1
    66     echo       "new.images: exec failure"
    67   end
    68 
    69   # default exit status
    7065  task.exit    default
    71     echo       "new.images: unknown exit status: $EXIT"
     66    echo       "detrend.stack: failure"
    7267  end
    7368
    7469  # operation times out?
    7570  task.exit    timeout
    76     echo       "new.images: timeout"
     71    echo       "detrend.stack: timeout"
    7772  end
    7873end
    7974
    8075# copy new images, sending job to desired host
    81 task           dettool.stack.process
     76task           dettool.stack.run
    8277  periods      -poll 0.5
    8378  periods      -exec 1.0
     
    8580
    8681  task.exec
    87     queuesize DetrendClassIDtoStack -var N
     82    queuesize DetrendStackClass -var N
    8883   
    8984    if ($N == 0) break
    9085    if ($network == 0) break
    9186   
    92     # look for new images on the internal DetrendClassIDtoStack queue
     87    # look for new images on the internal DetrendStackClass queue
    9388    # caution with these 'if' statements: syntax errors
    9489    # will make the task fail without given a good status
    95     queuepop DetrendClassIDtoStack -var line -key 0 NEW
     90    queuepop DetrendStackClass -var line -key 0 NEW
    9691    if ("$line" == "NULL") break
    9792
    9893    strpop line state
    99     queuepush DetrendClassIDtoStack -replace -key 1:2:4 "RUN $line"
     94    queuepush DetrendStackClass -replace -key 1:2:4 "RUN $line"
    10095
    101     # the DetrendClassIDtoStack queue contains:
     96    # the DetrendStackClass queue contains:
    10297    # STATE DET_ID ITER TYPE CLASS_ID
    10398    ## NOTE: the queue has the STATE prepended
     
    108103    $TYPE     = $word:2
    109104    $CLASS_ID = $word:3
    110     $CAMERA   = $word:3
     105    $CAMERA   = $word:4
    111106
    112107    stdout $CAMERA.$TYPE.$DET_ID.$ITER.$CLASS_ID.log
     
    129124  # success
    130125  task.exit 0
    131     queuepush DetrendClassIDtoStack -replace -key 1:2:4 "DONE $options:0"
     126    queuepush DetrendStackClass -replace -key 1:2:4 "DONE $options:0"
    132127  end
    133128
    134129  # default exit status
    135130  task.exit    default
    136     queuepush DetrendClassIDtoStack -replace -key 1:2:4 "FAIL $options:0"
     131    queuepush DetrendStackClass -replace -key 1:2:4 "FAIL $options:0"
    137132  end
    138133
    139134  # operation times out?
    140135  task.exit    timeout
    141     queuepush DetrendClassIDtoStack -replace -key 1:2:4 "TIMEOUT $options:0"
     136    queuepush DetrendStackClass -replace -key 1:2:4 "TIMEOUT $options:0"
    142137  end
    143138end
Note: See TracChangeset for help on using the changeset viewer.