IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.