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