IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14042


Ignore:
Timestamp:
Jul 6, 2007, 9:10:14 AM (19 years ago)
Author:
eugene
Message:

change internal state variable to pantaskState (protect from db fields named state)

Location:
trunk/ippTasks
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/camera.pro

    r13816 r14042  
    8686    end
    8787
    88     # delete existing entries in the appropriate states
     88    # delete existing entries in the appropriate pantaskStates
    8989    process_cleanup camPendingExp
    9090  end
     
    112112    if ($network == 0) break
    113113   
    114     # look for new images in camPendingExp (state == NULL)
    115     book getpage camPendingExp 0 -var pageName -key state NULL
     114    # look for new images in camPendingExp (pantaskState == NULL)
     115    book getpage camPendingExp 0 -var pageName -key pantaskState NULL
    116116    if ($pageName == NULL) break
    117117
    118     book setword camPendingExp $pageName state RUN
     118    book setword camPendingExp $pageName pantaskState RUN
    119119    book getword camPendingExp $pageName camera -var CAMERA
    120120    book getword camPendingExp $pageName exp_id -var EXP_ID
     
    170170  task.exit    timeout
    171171    showcommand timeout
    172     book setword camPendingExp $options:0 state TIMEOUT
     172    book setword camPendingExp $options:0 pantaskState TIMEOUT
    173173  end
    174174end
  • trunk/ippTasks/chip.pro

    r14016 r14042  
    8686    end
    8787
    88     # delete existing entries in the appropriate states
     88    # delete existing entries in the appropriate pantaskStates
    8989    process_cleanup chipPendingImfile
    9090  end
     
    112112    if ($network == 0) break
    113113   
    114     # look for new images in chipPendingImfile (state == NULL)
    115     book getpage chipPendingImfile 0 -var pageName -key state NULL
     114    # look for new images in chipPendingImfile (pantaskState == NULL)
     115    book getpage chipPendingImfile 0 -var pageName -key pantaskState NULL
    116116    if ($pageName == NULL) break
    117117
    118     book setword chipPendingImfile $pageName state RUN
     118    book setword chipPendingImfile $pageName pantaskState RUN
    119119    book getword chipPendingImfile $pageName camera -var CAMERA
    120120    book getword chipPendingImfile $pageName exp_id -var EXP_ID
     
    173173  task.exit    timeout
    174174    showcommand timeout
    175     book setword chipPendingImfile $options:0 state TIMEOUT
     175    book setword chipPendingImfile $options:0 pantaskState TIMEOUT
    176176  end
    177177end
  • trunk/ippTasks/detrend.norm.pro

    r13683 r14042  
    118118    end
    119119
    120     # delete existing entries in the appropriate states
     120    # delete existing entries in the appropriate pantaskStates
    121121    process_cleanup detPendingNormStatImfile
    122122  end
     
    145145   
    146146    # look for new images in detPendingNormStatImfile
    147     book getpage detPendingNormStatImfile 0 -var pageName -key state NULL
     147    book getpage detPendingNormStatImfile 0 -var pageName -key pantaskState NULL
    148148    if ($pageName == NULL) break
    149149
    150     book setword detPendingNormStatImfile $pageName state RUN
     150    book setword detPendingNormStatImfile $pageName pantaskState RUN
    151151    book getword detPendingNormStatImfile $pageName det_id    -var DET_ID
    152152    book getword detPendingNormStatImfile $pageName det_type  -var DET_TYPE
     
    198198  task.exit    timeout
    199199    showcommand timeout
    200     book setword detPendingNormStatImfile $options:0 state TIMEOUT
     200    book setword detPendingNormStatImfile $options:0 pantaskState TIMEOUT
    201201  end
    202202end
     
    237237    end
    238238
    239     # delete existing entries in the appropriate states
     239    # delete existing entries in the appropriate pantaskStates
    240240    process_cleanup detPendingNormImfile
    241241  end
     
    264264   
    265265    # look for new images in detPendingNormImfile
    266     book getpage detPendingNormImfile 0 -var pageName -key state NULL
     266    book getpage detPendingNormImfile 0 -var pageName -key pantaskState NULL
    267267    if ($pageName == NULL) break
    268268
    269     book setword detPendingNormImfile $pageName state RUN
     269    book setword detPendingNormImfile $pageName pantaskState RUN
    270270    book getword detPendingNormImfile $pageName det_type  -var DET_TYPE
    271271    book getword detPendingNormImfile $pageName camera    -var CAMERA   
     
    321321  task.exit    timeout
    322322    showcommand timeout
    323     book setword detPendingNormImfile $options:0 state TIMEOUT
     323    book setword detPendingNormImfile $options:0 pantaskState TIMEOUT
    324324  end
    325325end
     
    360360    end
    361361
    362     # delete existing entries in the appropriate states
     362    # delete existing entries in the appropriate pantaskStates
    363363    process_cleanup detPendingNormExp
    364364  end
     
    387387   
    388388    # look for new images in detPendingNormExp
    389     book getpage detPendingNormExp 0 -var pageName -key state NULL
     389    book getpage detPendingNormExp 0 -var pageName -key pantaskState NULL
    390390    if ($pageName == NULL) break
    391391
    392     book setword detPendingNormExp $pageName state RUN
     392    book setword detPendingNormExp $pageName pantaskState RUN
    393393    book getword detPendingNormExp $pageName det_id    -var DET_ID 
    394394    book getword detPendingNormExp $pageName iteration -var ITERATION   
     
    441441  task.exit    timeout
    442442    showcommand timeout
    443     book setword detPendingNormExp $options:0 state TIMEOUT
    444   end
    445 end
     443    book setword detPendingNormExp $options:0 pantaskState TIMEOUT
     444  end
     445end
  • trunk/ippTasks/detrend.process.pro

    r13937 r14042  
    105105    end
    106106
    107     # delete existing entries in the appropriate states
     107    # delete existing entries in the appropriate pantaskStates
    108108    process_cleanup detPendingProcessedImfile
    109109  end
     
    132132   
    133133    # look for new images in detPendingProcessedImfile
    134     book getpage detPendingProcessedImfile 0 -var pageName -key state NULL
     134    book getpage detPendingProcessedImfile 0 -var pageName -key pantaskState NULL
    135135    if ($pageName == NULL) break
    136136
    137     book setword detPendingProcessedImfile $pageName state RUN
     137    book setword detPendingProcessedImfile $pageName pantaskState RUN
    138138    book getword detPendingProcessedImfile $pageName det_id   -var DET_ID   
    139139    book getword detPendingProcessedImfile $pageName det_type -var DET_TYPE
     
    197197  task.exit    timeout
    198198    showcommand timeout
    199     book setword detPendingProcessedImfile $options:0 state TIMEOUT
     199    book setword detPendingProcessedImfile $options:0 pantaskState TIMEOUT
    200200 end
    201201end
     
    236236    end
    237237
    238     # delete existing entries in the appropriate states
     238    # delete existing entries in the appropriate pantaskStates
    239239    process_cleanup detPendingProcessedExp
    240240  end
     
    263263   
    264264    # look for new exposures in detPendingProcessedExp
    265     book getpage detPendingProcessedExp 0 -var pageName -key state NULL
     265    book getpage detPendingProcessedExp 0 -var pageName -key pantaskState NULL
    266266    if ($pageName == NULL) break
    267267
    268     book setword detPendingProcessedExp $pageName state RUN
     268    book setword detPendingProcessedExp $pageName pantaskState RUN
    269269    book getword detPendingProcessedExp $pageName det_id    -var DET_ID
    270270    book getword detPendingProcessedExp $pageName det_type  -var DET_TYPE
     
    322322  task.exit    timeout
    323323    showcommand timeout
    324     book setword detPendingProcessedExp $options:0 state TIMEOUT
    325   end
    326 end
     324    book setword detPendingProcessedExp $options:0 pantaskState TIMEOUT
     325  end
     326end
  • trunk/ippTasks/detrend.reject.pro

    r13683 r14042  
    8686    end
    8787
    88     # delete existing entries in the appropriate states
     88    # delete existing entries in the appropriate pantaskStates
    8989    process_cleanup detRejectExp
    9090  end
     
    113113   
    114114    # look for new images in detRejectExp
    115     book getpage detRejectExp 0 -var pageName -key state NULL
     115    book getpage detRejectExp 0 -var pageName -key pantaskState NULL
    116116    if ($pageName == NULL) break
    117117
    118     book setword detRejectExp $pageName state RUN
     118    book setword detRejectExp $pageName pantaskState RUN
    119119    book getword detRejectExp $pageName det_id    -var DET_ID   
    120120    book getword detRejectExp $pageName iteration -var ITERATION     
     
    167167  task.exit    timeout
    168168    showcommand failure
    169     book setword detRejectExp $options:0 state TIMEOUT
     169    book setword detRejectExp $options:0 pantaskState TIMEOUT
    170170  end
    171171end
  • trunk/ippTasks/detrend.resid.pro

    r13937 r14042  
    102102    end
    103103
    104     # delete existing entries in the appropriate states
     104    # delete existing entries in the appropriate pantaskStates
    105105    process_cleanup detPendingResidImfile
    106106  end
     
    129129   
    130130    # look for new images in detPendingResidImfile
    131     book getpage detPendingResidImfile 0 -var pageName -key state NULL
     131    book getpage detPendingResidImfile 0 -var pageName -key pantaskState NULL
    132132    if ($pageName == NULL) break
    133133
    134     book setword detPendingResidImfile $pageName state RUN
     134    book setword detPendingResidImfile $pageName pantaskState RUN
    135135    book getword detPendingResidImfile $pageName det_id    -var DET_ID   
    136136    book getword detPendingResidImfile $pageName iteration -var ITERATION     
     
    197197  task.exit    timeout
    198198    showcommand timeout
    199     book setword detPendingResidImfile $options:0 state TIMEOUT
     199    book setword detPendingResidImfile $options:0 pantaskState TIMEOUT
    200200  end
    201201end
     
    236236    end
    237237
    238     # delete existing entries in the appropriate states
     238    # delete existing entries in the appropriate pantaskStates
    239239    process_cleanup detPendingResidExp
    240240  end
     
    263263   
    264264    # look for new images in detPendingResidExp
    265     book getpage detPendingResidExp 0 -var pageName -key state NULL
     265    book getpage detPendingResidExp 0 -var pageName -key pantaskState NULL
    266266    if ($pageName == NULL) break
    267267
    268     book setword detPendingResidExp $pageName state RUN
     268    book setword detPendingResidExp $pageName pantaskState RUN
    269269    book getword detPendingResidExp $pageName det_id    -var DET_ID 
    270270    book getword detPendingResidExp $pageName iteration -var ITERATION   
     
    322322  task.exit    timeout
    323323    showcommand timeout
    324     book setword detPendingResidExp $options:0 state TIMEOUT
    325   end
    326 end
     324    book setword detPendingResidExp $options:0 pantaskState TIMEOUT
     325  end
     326end
  • trunk/ippTasks/detrend.stack.pro

    r13937 r14042  
    8787    end
    8888
    89     # delete existing entries in the appropriate states
     89    # delete existing entries in the appropriate pantaskStates
    9090    process_cleanup detPendingStackedImfile
    9191  end
     
    114114   
    115115    # look for new images in detPendingStackedImfile
    116     book getpage detPendingStackedImfile 0 -var pageName -key state NULL
     116    book getpage detPendingStackedImfile 0 -var pageName -key pantaskState NULL
    117117    if ($pageName == NULL) break
    118118
    119     book setword detPendingStackedImfile $pageName state RUN
     119    book setword detPendingStackedImfile $pageName pantaskState RUN
    120120    book getword detPendingStackedImfile $pageName det_id    -var DET_ID
    121121    book getword detPendingStackedImfile $pageName iteration -var ITERATION
     
    177177  task.exit    timeout
    178178    showcommand timeout
    179     book setword detPendingStackedImfile $options:0 state TIMEOUT
     179    book setword detPendingStackedImfile $options:0 pantaskState TIMEOUT
    180180  end
    181181end
  • trunk/ippTasks/diff.pro

    r13892 r14042  
    9595    end
    9696
    97     # delete existing entries in the appropriate states
     97    # delete existing entries in the appropriate pantaskStates
    9898    process_cleanup diffSkyfile
    9999  end
     
    122122    if ($network == 0) break
    123123   
    124     # look for new images in diffSkyfile (state == NULL)
    125     book getpage diffSkyfile 0 -var pageName -key state NULL
     124    # look for new images in diffSkyfile (pantaskState == NULL)
     125    book getpage diffSkyfile 0 -var pageName -key pantaskState NULL
    126126    if ($pageName == NULL) break
    127127
    128     book setword diffSkyfile $pageName state RUN
     128    book setword diffSkyfile $pageName pantaskState RUN
    129129    book getword diffSkyfile $pageName diff_id -var DIFF_ID
    130130    book getword diffSkyfile $pageName workdir -var WORKDIR
     
    175175  task.exit    timeout
    176176    showcommand timeout
    177     book setword diffSkyfile $options:0 state TIMEOUT
     177    book setword diffSkyfile $options:0 pantaskState TIMEOUT
    178178  end
    179179end
  • trunk/ippTasks/pantasks.pro

    r13949 r14042  
    256256  if ($exitCode == $EXIT_SUCCESS)
    257257    # the handler scripts update DB the tables; here we just update the page
    258     book setword $bookName $pageName state DONE
     258    book setword $bookName $pageName pantaskState DONE
    259259    return
    260260  end
    261261
    262262  # failure related to the data files
    263   # jobs which result in DATAERR must have db state updated
     263  # jobs which result in DATAERR must have db pantaskState updated
    264264  if ($exitCode == $EXIT_DATA_ERR)
    265265    showcommand failure
    266     book setword $bookName $pageName state DATA_ERR
     266    book setword $bookName $pageName pantaskState DATA_ERR
    267267    return
    268268  end
     
    279279    # stop
    280280    showcommand "system failure"
    281     book setword $bookName $pageName state SYS_ERR
     281    book setword $bookName $pageName pantaskState SYS_ERR
    282282    return
    283283  end
     
    287287    # stop
    288288    showcommand "config error"
    289     book setword $bookName $pageName state CONFIG_ERR
     289    book setword $bookName $pageName pantaskState CONFIG_ERR
    290290    return
    291291  end
     
    295295    # stop
    296296    showcommand "programming error"
    297     book setword $bookName $pageName state PROG_ERR
     297    book setword $bookName $pageName pantaskState PROG_ERR
    298298    return
    299299  end
     
    301301  # any other exit status
    302302  showcommand failure
    303   book setword $bookName $pageName state UNKNOWN_ERR
     303  book setword $bookName $pageName pantaskState UNKNOWN_ERR
    304304end
    305305
     
    311311  end
    312312
    313   book delpage $1 -key state DONE
    314   book delpage $1 -key state SYS_ERR
    315   book delpage $1 -key state DATA_ERR
    316   book delpage $1 -key state PROG_ERR
    317   book delpage $1 -key state CONFIG_ERR
    318   book delpage $1 -key state UNKNOWN_ERR
    319 end
     313  book delpage $1 -key pantaskState DONE
     314  book delpage $1 -key pantaskState SYS_ERR
     315  book delpage $1 -key pantaskState DATA_ERR
     316  book delpage $1 -key pantaskState PROG_ERR
     317  book delpage $1 -key pantaskState CONFIG_ERR
     318  book delpage $1 -key pantaskState UNKNOWN_ERR
     319end
  • trunk/ippTasks/register.pro

    r14041 r14042  
    105105    end
    106106
    107     # delete existing entries in the appropriate states
     107    # delete existing entries in the appropriate pantaskStates
    108108    process_cleanup regPendingImfile
    109109  end
     
    132132   
    133133    # look for new images in regPendingImfile
    134     book getpage regPendingImfile 0 -var pageName -key state NULL
     134    book getpage regPendingImfile 0 -var pageName -key pantaskState NULL
    135135    if ($pageName == NULL) break
    136136
    137     book setword regPendingImfile $pageName state RUN
     137    book setword regPendingImfile $pageName pantaskState RUN
    138138
    139139    book getword regPendingImfile $pageName exp_id -var EXP_ID
     
    183183  task.exit    timeout
    184184    showcommand timeout
    185     book setword regPendingImfile $options:0 state TIMEOUT
     185    book setword regPendingImfile $options:0 pantaskState TIMEOUT
    186186  end
    187187end
     
    219219    end
    220220
    221     # delete existing entries in the appropriate states
     221    # delete existing entries in the appropriate pantaskStates
    222222    process_cleanup regPendingExp
    223223  end
     
    245245    if ($network == 0) break
    246246   
    247     # look for new images in regPendingExp (state == NULL)
    248     book getpage regPendingExp 0 -var pageName -key state NULL
     247    # look for new images in regPendingExp (pantaskState == NULL)
     248    book getpage regPendingExp 0 -var pageName -key pantaskState NULL
    249249    if ($pageName == NULL) break
    250250
    251     book setword regPendingExp $pageName state RUN
     251    book setword regPendingExp $pageName pantaskState RUN
    252252    book getword regPendingExp $pageName exp_id -var EXP_ID
    253253    book getword regPendingExp $pageName tmp_exp_name -var TMP_EXP_NAME
     
    294294  task.exit    timeout
    295295    showcommand timeout
    296     book setword regPendingExp $options:0 state TIMEOUT
     296    book setword regPendingExp $options:0 pantaskState TIMEOUT
    297297  end
    298298end
  • trunk/ippTasks/stack.pro

    r12697 r14042  
    9595    end
    9696
    97     # delete existing entries in the appropriate states
     97    # delete existing entries in the appropriate pantaskStates
    9898    process_cleanup stackSumSkyfile
    9999  end
     
    122122    if ($network == 0) break
    123123   
    124     # look for new images in stackSumSkyfile (state == NULL)
    125     book getpage stackSumSkyfile 0 -var pageName -key state NULL
     124    # look for new images in stackSumSkyfile (pantaskState == NULL)
     125    book getpage stackSumSkyfile 0 -var pageName -key pantaskState NULL
    126126    if ($pageName == NULL) break
    127127
    128     book setword stackSumSkyfile $pageName state RUN
     128    book setword stackSumSkyfile $pageName pantaskState RUN
    129129    book getword stackSumSkyfile $pageName stack_id -var STACK_ID
    130130    book getword stackSumSkyfile $pageName workdir -var WORKDIR
     
    175175  task.exit    timeout
    176176    showcommand timeout
    177     book setword stackSumSkyfile $options:0 state TIMEOUT
     177    book setword stackSumSkyfile $options:0 pantaskState TIMEOUT
    178178  end
    179179end
  • trunk/ippTasks/warp.pro

    r13153 r14042  
    111111    end
    112112
    113     # delete existing entries in the appropriate states
     113    # delete existing entries in the appropriate pantaskStates
    114114    process_cleanup warpInputExp
    115115  end
     
    138138    if ($network == 0) break
    139139   
    140     # look for new images in warpInputExp (state == NULL)
    141     book getpage warpInputExp 0 -var pageName -key state NULL
     140    # look for new images in warpInputExp (pantaskState == NULL)
     141    book getpage warpInputExp 0 -var pageName -key pantaskState NULL
    142142    if ("$pageName" == "NULL") break
    143143
    144     book setword warpInputExp $pageName state RUN
     144    book setword warpInputExp $pageName pantaskState RUN
    145145    book getword warpInputExp $pageName warp_id -var WARP_ID
    146146    book getword warpInputExp $pageName camera -var CAMERA
     
    192192  task.exit    timeout
    193193    showcommand timeout
    194     book setword warpInputExp $options:0 state TIMEOUT
     194    book setword warpInputExp $options:0 pantaskState TIMEOUT
    195195  end
    196196end
     
    231231    end
    232232
    233     # delete existing entries in the appropriate states
     233    # delete existing entries in the appropriate pantaskStates
    234234    process_cleanup warpPendingSkyCell
    235235  end
     
    258258    if ($network == 0) break
    259259   
    260     # look for new images in warpPendingSkyCell (state == NULL)
    261     book getpage warpPendingSkyCell 0 -var pageName -key state NULL
     260    # look for new images in warpPendingSkyCell (pantaskState == NULL)
     261    book getpage warpPendingSkyCell 0 -var pageName -key pantaskState NULL
    262262    if ("$pageName" == "NULL") break
    263263
    264     book setword warpPendingSkyCell $pageName state RUN
     264    book setword warpPendingSkyCell $pageName pantaskState RUN
    265265    book getword warpPendingSkyCell $pageName warp_id -var WARP_ID
    266266    book getword warpPendingSkyCell $pageName skycell_id -var SKYCELL_ID
     
    314314  task.exit    timeout
    315315    showcommand timeout
    316     book setword warpPendingSkyCell $options:0 state TIMEOUT
    317   end
    318 end
    319 
     316    book setword warpPendingSkyCell $options:0 pantaskState TIMEOUT
     317  end
     318end
     319
Note: See TracChangeset for help on using the changeset viewer.