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