IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29837


Ignore:
Timestamp:
Nov 26, 2010, 10:34:11 AM (15 years ago)
Author:
eugene
Message:

merge updates from trunk

Location:
branches/eam_branches/ipp-20101103/ippTasks
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101103/ippTasks

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20101103/ippTasks/pstamp.pro

    r29613 r29837  
    134134    end
    135135    task pstamp.cleanup.run
     136        active false
     137    end
     138end
     139macro pstamp.find.on
     140    task pstamp.request.find
     141        active true
     142    end
     143end
     144macro pstamp.find.off
     145    task pstamp.request.find.load
    136146        active false
    137147    end
  • branches/eam_branches/ipp-20101103/ippTasks/publish.pro

    r29507 r29837  
    1515
    1616macro publish.on
    17   task publish.trigger
    18     active true
    19   end
    2017  task publish.load
    2118    active true
     
    3027
    3128macro publish.off
    32   task publish.trigger
    33     active false
    34   end
    3529  task publish.load
    3630    active false
     
    5953
    6054# this variable will cycle through the known database names
    61 $publish_trigger_DB = 0
    6255$publish_load_DB = 0
    6356$publish_revert_DB = 0
    6457
    65 task           publish.trigger
     58task           publish.load
    6659  host         local
    6760
     
    7265
    7366  stdout NULL
    74   stderr $LOGDIR/publish.trigger.log
    75 
    76   task.exec
    77     if ($LABEL:n == 0) break
    78     #otherwise everything will be queued when there is no label.
    79     $run = pubtool -definerun
    80     if ($DB:n == 0)
    81       option DEFAULT
    82     else
    83       # save the DB name for the exit tasks
    84       option $DB:$publish_trigger_DB
    85       $run = $run -dbname $DB:$publish_trigger_DB
    86       $publish_trigger_DB ++
    87       if ($publish_trigger_DB >= $DB:n) set publish_trigger_DB = 0
    88     end
    89     add_poll_labels run
    90     command $run
    91   end
    92 
    93   # success
    94   task.exit    0
    95   end
    96 
    97   # locked list
    98   task.exit    default
    99     showcommand failure
    100   end
    101 
    102   task.exit    crash
    103     showcommand crash
    104   end
    105 
    106   # operation times out?
    107   task.exit    timeout
    108     showcommand timeout
    109   end
    110 end
    111 
    112 task           publish.load
    113   host         local
    114 
    115   periods      -poll $LOADPOLL
    116   periods      -exec $LOADEXEC
    117   periods      -timeout 30
    118   npending     1
    119 
    120   stdout NULL
    12167  stderr $LOGDIR/publish.load.log
    12268
    123   # this query should probably be label-based...
    12469  task.exec
    12570    $run = pubtool -pending
  • branches/eam_branches/ipp-20101103/ippTasks/science.cleanup.pro

    r29431 r29837  
    88    diff.cleanup.on
    99    stack.cleanup.on
     10    chip.bg.cleanup.on
     11    warp.bg.cleanup.on
    1012end
    1113
     
    934936
    935937
     938book init chipBGPendingCleanup
     939
     940macro chip.bg.cleanup.status
     941  book listbook chipBGPendingCleanup
     942end
     943
     944macro chip.bg.cleanup.reset
     945  book init chipBGPendingCleanup
     946end
     947
     948macro chip.bg.cleanup.on
     949  task chip.bg.cleanup.load
     950    active true
     951  end
     952  task chip.bg.cleanup.run
     953    active true
     954  end
     955end
     956
     957macro chip.bg.cleanup.off
     958  task chip.bg.cleanup.load
     959    active false
     960  end
     961  task chip.bg.cleanup.run
     962    active false
     963  end
     964end
     965
     966# this variable will cycle through the known database names
     967$chip_bg_cleanup_DB = 0
     968
     969task           chip.bg.cleanup.load
     970  host         local
     971
     972  periods      -poll $LOADPOLL
     973  periods      -exec $LOADEXEC
     974  periods      -timeout 30
     975  npending     1
     976  active       false
     977
     978  stdout NULL
     979  stderr $LOGDIR/chip.bg.cleanup.log
     980
     981  task.exec
     982    if ($LABEL:n == 0) break
     983    $run = bgtool -pendingcleanupchiprun
     984    if ($DB:n == 0)
     985      option DEFAULT
     986    else
     987      # save the DB name for the exit tasks
     988      option $DB:$chip_bg_cleanup_DB
     989      $run = $run -dbname $DB:$chip_bg_cleanup_DB
     990      $chip_bg_cleanup_DB ++
     991      if ($chip_bg_cleanup_DB >= $DB:n) set chip_bg_cleanup_DB = 0
     992    end
     993    add_poll_args run
     994    add_poll_labels run
     995    command $run
     996  end
     997
     998  # success
     999  task.exit    0
     1000    # convert 'stdout' to book format
     1001    ipptool2book stdout chipBGPendingCleanup -key chip_bg_id -uniq -setword dbname $options:0 -setword pantaskState INIT
     1002    if ($VERBOSE > 2)
     1003      book listbook chipBGPendingCleanup
     1004    end
     1005
     1006    # delete existing entries in the appropriate pantaskStates
     1007    process_cleanup chipBGPendingCleanup
     1008  end
     1009
     1010  # locked list
     1011  task.exit    default
     1012    showcommand failure
     1013  end
     1014
     1015  task.exit    crash
     1016    showcommand crash
     1017  end
     1018
     1019  # operation times out?
     1020  task.exit    timeout
     1021    showcommand timeout
     1022  end
     1023end
     1024
     1025# run the ipp_cleanup.pl script on pending images
     1026task           chip.bg.cleanup.run
     1027  periods      -poll $RUNPOLL
     1028  periods      -exec $RUNEXEC
     1029  periods      -timeout 300
     1030  active       false
     1031
     1032  task.exec
     1033    book npages chipBGPendingCleanup -var N
     1034    if ($N == 0)
     1035        periods -exec $RUNEXEC
     1036        break
     1037    end
     1038    if ($NETWORK == 0) break
     1039   
     1040    # look for new images in chipBGPendingCleanup (pantaskState == INIT)
     1041    book getpage chipBGPendingCleanup 0 -var pageName -key pantaskState INIT
     1042    if ("$pageName" == "NULL") break
     1043
     1044    book setword chipBGPendingCleanup $pageName pantaskState RUN
     1045    book getword chipBGPendingCleanup $pageName camera -var CAMERA
     1046    book getword chipBGPendingCleanup $pageName state -var CLEANUP_MODE
     1047    book getword chipBGPendingCleanup $pageName chip_bg_id -var CHIP_BG_ID
     1048    book getword chipBGPendingCleanup $pageName workdir -var WORKDIR_TEMPLATE
     1049    book getword chipBGPendingCleanup $pageName exp_tag -var EXP_TAG
     1050    book getword chipBGPendingCleanup $pageName dbname -var DBNAME
     1051
     1052    # specify choice of local or remote host based on camera and chip (class_id)
     1053    set.host.for.camera $CAMERA FPA
     1054    set.workdir.by.camera $CAMERA FPA $WORKDIR_TEMPLATE $default_host WORKDIR
     1055    sprintf logfile "%s/%s/%s.bgc.%s.cleanup.log" $WORKDIR $EXP_TAG $EXP_TAG $CHIP_BG_ID
     1056
     1057    stdout $LOGDIR/chip.bg.cleanup.log
     1058    stderr $LOGDIR/chip.bg.cleanup.log
     1059
     1060    # XXX is everything listed here needed?
     1061    $run = ipp_cleanup.pl --stage chip_bg --stage_id $CHIP_BG_ID --camera $CAMERA --mode $CLEANUP_MODE --logfile $logfile
     1062    add_standard_args run
     1063
     1064    # save the pageName for future reference below
     1065    options $pageName
     1066
     1067    # create the command line
     1068    if ($VERBOSE > 1)
     1069      echo command $run
     1070    end
     1071    periods -exec 0.05
     1072    command $run
     1073  end
     1074
     1075  # default exit status
     1076  task.exit    default
     1077    process_exit chipBGPendingCleanup $options:0 $JOB_STATUS
     1078  end
     1079
     1080  task.exit    crash
     1081    showcommand crash
     1082    book setword chipBGPendingCleanup $options:0 pantaskState CRASH
     1083  end
     1084
     1085  # operation timed out?
     1086  task.exit    timeout
     1087    showcommand timeout
     1088    book setword chipBGPendingCleanup $options:0 pantaskState TIMEOUT
     1089  end
     1090end
     1091
     1092book init warpBGPendingCleanup
     1093
     1094macro warp.bg.cleanup.status
     1095  book listbook warpBGPendingCleanup
     1096end
     1097
     1098macro warp.bg.cleanup.reset
     1099  book init warpBGPendingCleanup
     1100end
     1101
     1102macro warp.bg.cleanup.on
     1103  task warp.bg.cleanup.load
     1104    active true
     1105  end
     1106  task warp.bg.cleanup.run
     1107    active true
     1108  end
     1109end
     1110
     1111macro warp.bg.cleanup.off
     1112  task warp.bg.cleanup.load
     1113    active false
     1114  end
     1115  task warp.bg.cleanup.run
     1116    active false
     1117  end
     1118end
     1119
     1120# this variable will cycle through the known database names
     1121$warp_bg_cleanup_DB = 0
     1122
     1123task           warp.bg.cleanup.load
     1124  host         local
     1125
     1126  periods      -poll $LOADPOLL
     1127  periods      -exec $LOADEXEC
     1128  periods      -timeout 300
     1129  npending     1
     1130  active       false
     1131
     1132  stdout NULL
     1133  stderr $LOGDIR/warp.bg.cleanup.log
     1134
     1135  task.exec
     1136    if ($LABEL:n == 0) break
     1137    $run = bgtool -pendingcleanupwarprun
     1138    if ($DB:n == 0)
     1139      option DEFAULT
     1140    else
     1141      # save the DB name for the exit tasks
     1142      option $DB:$warp_bg_cleanup_DB
     1143      $run = $run -dbname $DB:$warp_bg_cleanup_DB
     1144      $warp_bg_cleanup_DB ++
     1145      if ($warp_bg_cleanup_DB >= $DB:n) set warp_bg_cleanup_DB = 0
     1146    end
     1147    add_poll_args run
     1148    add_poll_labels run
     1149    command $run
     1150  end
     1151
     1152  # success
     1153  task.exit    0
     1154    # convert 'stdout' to book format
     1155    ipptool2book stdout warpBGPendingCleanup -key warp_bg_id -uniq -setword dbname $options:0 -setword pantaskState INIT
     1156    if ($VERBOSE > 2)
     1157      book listbook warpBGPendingCleanup
     1158    end
     1159
     1160    # delete existing entries in the appropriate pantaskStates
     1161    process_cleanup warpBGPendingCleanup
     1162  end
     1163
     1164  # locked list
     1165  task.exit    default
     1166    showcommand failure
     1167  end
     1168
     1169  task.exit    crash
     1170    showcommand crash
     1171  end
     1172
     1173  # operation times out?
     1174  task.exit    timeout
     1175    showcommand timeout
     1176  end
     1177end
     1178
     1179# run the ipp_cleanup.pl script on pending images
     1180task           warp.bg.cleanup.run
     1181  periods      -poll $RUNPOLL
     1182  periods      -exec $RUNEXEC
     1183  periods      -timeout 300
     1184  active       false
     1185
     1186  task.exec
     1187    book npages warpBGPendingCleanup -var N
     1188    if ($N == 0)
     1189        periods -exec $RUNEXEC
     1190        break
     1191    end
     1192    if ($NETWORK == 0) break
     1193   
     1194    # look for new images in warpBGPendingCleanup (pantaskState == INIT)
     1195    book getpage warpBGPendingCleanup 0 -var pageName -key pantaskState INIT
     1196    if ("$pageName" == "NULL") break
     1197
     1198    book setword warpBGPendingCleanup $pageName pantaskState RUN
     1199    book getword warpBGPendingCleanup $pageName camera -var CAMERA
     1200    book getword warpBGPendingCleanup $pageName state -var CLEANUP_MODE
     1201    book getword warpBGPendingCleanup $pageName warp_bg_id -var WARP_BG_ID
     1202    book getword warpBGPendingCleanup $pageName workdir -var WORKDIR_TEMPLATE
     1203    book getword warpBGPendingCleanup $pageName exp_tag -var EXP_TAG
     1204    book getword warpBGPendingCleanup $pageName dbname -var DBNAME
     1205
     1206    # specify choice of local or remote host based on camera and warp
     1207    set.host.for.camera $CAMERA FPA
     1208    set.workdir.by.camera $CAMERA $WARP_BG_ID $WORKDIR_TEMPLATE $default_host WORKDIR
     1209    sprintf logfile "%s/%s/%s.bgw.%s.cleanup.log" $WORKDIR $EXP_TAG $EXP_TAG $WARP_BG_ID
     1210
     1211    stdout $LOGDIR/warp.bg.cleanup.log
     1212    stderr $LOGDIR/warp.bg.cleanup.log
     1213
     1214    # XXX is everything listed here needed?
     1215    $run = ipp_cleanup.pl --stage warp_bg --stage_id $WARP_BG_ID --camera $CAMERA --mode $CLEANUP_MODE --logfile $logfile
     1216    add_standard_args run
     1217
     1218    # save the pageName for future reference below
     1219    options $pageName
     1220
     1221    # create the command line
     1222    if ($VERBOSE > 1)
     1223      echo command $run
     1224    end
     1225    periods -exec 0.05
     1226    command $run
     1227  end
     1228
     1229  # default exit status
     1230  task.exit    default
     1231    process_exit warpBGPendingCleanup $options:0 $JOB_STATUS
     1232  end
     1233
     1234  task.exit    crash
     1235    showcommand crash
     1236    book setword warpBGPendingCleanup $options:0 pantaskState CRASH
     1237  end
     1238
     1239  # operation timed out?
     1240  task.exit    timeout
     1241    showcommand timeout
     1242    book setword warpBGPendingCleanup $options:0 pantaskState TIMEOUT
     1243  end
     1244end
  • branches/eam_branches/ipp-20101103/ippTasks/stack.pro

    r28649 r29837  
    88check.globals
    99
     10if ($?POLL_LIMIT_STACK == 0) set POLL_LIMIT_STACK = 40
     11
     12macro set.stack.poll
     13  if ($0 != 2)
     14    echo "USAGE:set.stack.poll (value)"
     15    break
     16  end
     17
     18  $POLL_LIMIT_STACK = $1
     19end
     20macro get.stack.poll
     21  echo $POLL_LIMIT_STACK
     22end
     23
    1024### Initialise the books containing the tasks to do
    1125book init stackSumSkyfile
    1226book init stackPendingSummary
    13 #book init stackCleanup
    1427
    1528### Database lists
    1629$stackSkycell_DB = 0
    1730$stack_revert_DB = 0
    18 #$stackCleanup_DB = 0
    1931$stackSummary_DB = 0
    2032
     
    2234macro stack.status
    2335  book listbook stackSumSkyfile
    24 #  book listbook stackCleanup
    2536end
    2637
     
    2940  book init stackSumSkyfile
    3041  book init stackPendingSummary
    31 #  book init stackCleanup
    3242end
    3343
     
    8191  end
    8292end
    83 
    84 
    85 
    86 
    87 
    88 # macro stack.cleanup.on
    89 #   task stack.cleanup.load
    90 #     active true
    91 #   end
    92 #   task stack.cleanup.run
    93 #     active true
    94 #   end
    95 # end
    96 
    97 # macro stack.cleanup.off
    98 #   task stack.cleanup.load
    99 #     active false
    100 #   end
    101 #   task stack.cleanup.run
    102 #     active false
    103 #   end
    104 # end
    10593
    10694
     
    132120    add_poll_args run
    133121    add_poll_labels run
    134     # reduce the limit (the last one takes precedence)
    135     $run = $run -limit 40
     122    # change the limit (the last one on the command line takes precedence)
     123    $run = $run -limit $POLL_LIMIT_STACK
    136124    command $run
    137125  end
     
    246234  end
    247235end
    248 
    249 
    250 # # select images ready for stack analysis
    251 # # new entries are added to stackCleanup
    252 # # skip already-present entries
    253 # task         stack.cleanup.load
    254 #   host         local
    255 
    256 #   periods      -poll $LOADPOLL
    257 #   periods      -exec $LOADEXEC
    258 #   periods      -timeout 30
    259 #   npending     1
    260 #   active       false
    261 
    262 #   stdout NULL
    263 #   stderr $LOGDIR/stack.cleanup.log
    264 
    265 #   task.exec
    266 #     if ($LABEL:n == 0) break
    267 #     $run = stacktool -pendingcleanuprun
    268 #     if ($DB:n == 0)
    269 #       option DEFAULT
    270 #     else
    271 #       # save the DB name for the exit tasks
    272 #       option $DB:$stackCleanup_DB
    273 #       $run = $run -dbname $DB:$stackCleanup_DB
    274 #       $stackCleanup_DB ++
    275 #       if ($stackCleanup_DB >= $DB:n) set stackCleanup_DB = 0
    276 #     end
    277 #     add_poll_args run
    278 #     add_poll_labels run
    279 #     command $run
    280 #   end
    281 
    282 #   # success
    283 #   task.exit    0
    284 #     # convert 'stdout' to book format
    285 #     ipptool2book stdout stackCleanup -key stack_id -uniq -setword dbname $options:0 -setword pantaskState INIT
    286 #     if ($VERBOSE > 2)
    287 #       book listbook stackCleanup
    288 #     end
    289 
    290 #     # delete existing entries in the appropriate pantaskStates
    291 #     process_cleanup stackCleanup
    292 #   end
    293 
    294 #   # locked list
    295 #   task.exit    default
    296 #     showcommand failure
    297 #   end
    298 
    299 #   task.exit    crash
    300 #     showcommand crash
    301 #   end
    302 
    303 #   # operation times out?
    304 #   task.exit    timeout
    305 #     showcommand timeout
    306 #   end
    307 # end
    308 
    309 # # run the ipp_cleanup.pl script on pending images
    310 # task         stack.cleanup.run
    311 #   periods      -poll $RUNPOLL
    312 #   periods      -exec $RUNEXEC
    313 #   periods      -timeout 60
    314 #   active       false
    315 
    316 #   task.exec
    317 #     book npages stackCleanup -var N
    318 #     if ($N == 0) break
    319 #     if ($NETWORK == 0) break
    320    
    321 #     # look for new images in stackCleanup (pantaskState == INIT)
    322 #     book getpage stackCleanup 0 -var pageName -key pantaskState INIT
    323 #     if ("$pageName" == "NULL") break
    324 
    325 #     book setword stackCleanup $pageName pantaskState RUN
    326 #     book getword stackCleanup $pageName camera -var CAMERA
    327 #     book getword stackCleanup $pageName state -var CLEANUP_MODE
    328 #     book getword stackCleanup $pageName stack_id -var STACK_ID
    329 #     book getword stackCleanup $pageName dbname -var DBNAME
    330 
    331 #     # specify choice of local or remote host based on camera and stack (class_id)
    332 #     set.host.for.camera $CAMERA FPA
    333 
    334 #     stdout $LOGDIR/stack.cleanup.log
    335 #     stderr $LOGDIR/stack.cleanup.log
    336 
    337 #     # XXX is everything listed here needed?
    338 #     $run = ipp_cleanup.pl --stage stack --stage_id $STACK_ID --camera $CAMERA --mode $CLEANUP_MODE
    339 #     add_standard_args run
    340 
    341 #     # save the pageName for future reference below
    342 #     options $pageName
    343 
    344 #     # create the command line
    345 #     if ($VERBOSE > 1)
    346 #       echo command $run
    347 #     end
    348 #     command $run
    349 #   end
    350 
    351 #   # default exit status
    352 #   task.exit    default
    353 #     process_exit stackCleanup $options:0 $JOB_STATUS
    354 #   end
    355 
    356 #   task.exit    crash
    357 #     showcommand crash
    358 #     book setword stackCleanup $options:0 pantaskState CRASH
    359 #   end
    360 
    361 #   # operation timed out?
    362 #   task.exit    timeout
    363 #     showcommand timeout
    364 #     book setword stackCleanup $options:0 pantaskState TIMEOUT
    365 #   end
    366 # end
    367 
    368 
    369236
    370237
  • branches/eam_branches/ipp-20101103/ippTasks/survey.pro

    r29587 r29837  
    3232 book create SURVEY_CHIP_BG
    3333 book create SURVEY_WARP_BG
     34 book create SURVEY_PUBLISH
    3435 $haveSurveyBooks = TRUE
    3536end
     
    4445$SURVEY_CHIP_BG_DB = 0
    4546$SURVEY_WARP_BG_DB = 0
     47$SURVEY_PUBLISH_DB = 0
    4648
    4749$SURVEY_EXEC = 120
     
    7779    active true
    7880  end
     81  task survey.publish
     82    active true
     83  end
    7984end
    8085
     
    105110  end
    106111  task survey.warp.bg
     112    active false
     113  end
     114  task survey.publish
    107115    active false
    108116  end
     
    355363  book listbook SURVEY_WARP_BG
    356364end
     365
     366# user functions to manipulate publish labels
     367macro survey.add.publish
     368  if ($0 != 3)
     369    echo "USAGE: survey.add.publish (label) (client_id)"
     370    break
     371  end
     372  book newpage SURVEY_PUBLISH $1
     373  book setword SURVEY_PUBLISH $1 CLIENT_ID $2
     374  book setword SURVEY_PUBLISH $1 STATE PENDING
     375end
     376
     377macro survey.del.publish
     378  if ($0 != 2)
     379    echo "USAGE: survey.del.publish (label)"
     380    break
     381  end
     382  book delpage SURVEY_PUBLISH $1
     383end
     384
     385macro survey.show.publish
     386  if ($0 != 1)
     387    echo "USAGE: survey.show.publish"
     388    break
     389  end
     390  book listbook SURVEY_PUBLISH
     391end
     392
    357393
    358394task survey.diff
     
    579615    end
    580616   
    581     echo $run
     617    # echo $run
    582618    command $run
    583619  end
     
    651687    end
    652688   
    653     echo $run
     689    # echo $run
    654690    command $run
    655691  end
     
    674710  end
    675711end
     712
    676713
    677714task survey.addstar
     
    723760   
    724761    $run = $run -definebyquery -destreaked -label $label -set_dvodb $dvodb -set_minidvodb_group $minidvodb_group -set_minidvodb -set_label $minidvodb_group
    725     echo $run
     762    # echo $run
    726763    command $run
    727764  end
     
    790827      option DEFAULT
    791828    else
    792       $run = $run --dbname $DB:$SURVEY_MAGIC_DB
    793       option $DB:$SURVEY_MAGIC_DB
     829      $run = $run --dbname $DB:$SURVEY_DESTREAK_DB
     830      option $DB:$SURVEY_DESTREAK_DB
    794831    end
    795832   
     
    934971    end
    935972   
    936     echo $run
     973    # echo $run
    937974    command $run
    938975  end
     
    10041041    end
    10051042   
    1006     echo $run
     1043    # echo $run
    10071044    command $run
    10081045  end
     
    10271064  end
    10281065end
     1066
     1067task survey.publish
     1068  host local
     1069 
     1070  periods      -poll $SURVEY_POLL
     1071  periods      -exec $SURVEY_EXEC
     1072  periods      -timeout $SURVEY_TIMEOUT
     1073  npending     1
     1074
     1075  stdout $LOGDIR/survey.publish.log
     1076  stderr $LOGDIR/survey.publish.log
     1077
     1078  # generate publish runs
     1079  task.exec
     1080    book npages SURVEY_PUBLISH -var N
     1081    if ($N == 0)
     1082    #  echo "No labels for processing"
     1083      break
     1084    endif
     1085
     1086    book getpage SURVEY_PUBLISH 0 -var label -key STATE NEW
     1087    if ("$label" == "NULL")
     1088      # All labels have been done --- reset
     1089      # echo "Resetting labels"
     1090      for i 0 $N
     1091        book getpage SURVEY_PUBLISH $i -var label
     1092        book setword SURVEY_PUBLISH $label STATE NEW
     1093      end
     1094      book getpage SURVEY_PUBLISH 0 -var label -key STATE NEW
     1095
     1096      # Select different database
     1097      $SURVEY_PUBLISH ++
     1098      if ($SURVEY_PUBLISH >= $DB:n) set SURVEY_PUBLISH = 0
     1099    end
     1100
     1101    book setword SURVEY_PUBLISH $label STATE DONE
     1102    book getword SURVEY_PUBLISH $label CLIENT_ID -var client_id
     1103 
     1104    $run = pubtool -definerun -label $label -client_id $client_id
     1105
     1106    if ($DB:n == 0)
     1107      option DEFAULT
     1108    else
     1109      $run = $run -dbname $DB:$SURVEY_PUBLISH
     1110      option $DB:$SURVEY_PUBLISH
     1111    end
     1112   
     1113    #echo $run
     1114    command $run
     1115  end
     1116
     1117  # success
     1118  task.exit    0
     1119    #echo "Success"
     1120  end
     1121
     1122  # locked list
     1123  task.exit    default
     1124    showcommand failure
     1125  end
     1126
     1127  task.exit    crash
     1128    showcommand crash
     1129  end
     1130
     1131  # operation times out?
     1132  task.exit    timeout
     1133    showcommand timeout
     1134  end
     1135end
Note: See TracChangeset for help on using the changeset viewer.