Changeset 27304 for trunk/ippTasks
- Timestamp:
- Mar 16, 2010, 6:28:29 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/dqstats.pro (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/dqstats.pro
r26378 r27304 1 1 ## dqstats.pro : globals and support macros : -*- sh -*- 2 2 ## this file contains the tasks for running the dqstats analysis stage 3 ## these tasks use the book dqstatsPending Exp3 ## these tasks use the book dqstatsPendingBundle 4 4 5 5 # test for required global variables 6 6 check.globals 7 7 8 book init dqstatsPending Exp8 book init dqstatsPendingBundle 9 9 10 10 macro dqstats.status 11 book listbook dqstatsPending Exp11 book listbook dqstatsPendingBundle 12 12 end 13 13 14 14 macro dqstats.reset 15 book init dqstatsPending Exp15 book init dqstatsPendingBundle 16 16 end 17 17 … … 45 45 46 46 # select images ready for dqstats analysis 47 # new entries are added to dqstatsPending Exp47 # new entries are added to dqstatsPendingBundle 48 48 # skip already-present entries 49 49 task dqstats.load … … 70 70 if ($dqstats_DB >= $DB:n) set dqstats_DB = 0 71 71 end 72 add_poll_args run73 add_poll_labels run72 # add_poll_args run 73 # add_poll_labels run 74 74 command $run 75 75 end … … 78 78 task.exit 0 79 79 # convert 'stdout' to book format 80 ipptool2book stdout dqstatsPending Exp-key dqstats_id -uniq -setword dbname $options:0 -setword pantaskState INIT80 ipptool2book stdout dqstatsPendingBundle -key dqstats_id -uniq -setword dbname $options:0 -setword pantaskState INIT 81 81 if ($VERBOSE > 2) 82 book listbook dqstatsPending Exp82 book listbook dqstatsPendingBundle 83 83 end 84 84 85 85 # delete existing entries in the appropriate pantaskStates 86 process_cleanup dqstatsPending Exp86 process_cleanup dqstatsPendingBundle 87 87 end 88 88 … … 106 106 periods -poll $RUNPOLL 107 107 periods -exec $RUNEXEC 108 periods -timeout 10108 periods -timeout 600 109 109 110 110 ## we want only a single outstanding dqstats job. … … 113 113 114 114 task.exec 115 book npages dqstatsPending Exp-var N115 book npages dqstatsPendingBundle -var N 116 116 if ($N == 0) break 117 117 if ($NETWORK == 0) break 118 118 119 # look for new images in dqstatsPending Exp(pantaskState == INIT)120 book getpage dqstatsPending Exp0 -var pageName -key pantaskState INIT119 # look for new images in dqstatsPendingBundle (pantaskState == INIT) 120 book getpage dqstatsPendingBundle 0 -var pageName -key pantaskState INIT 121 121 if ("$pageName" == "NULL") break 122 122 123 book setword dqstatsPendingExp $pageName pantaskState RUN 124 book getword dqstatsPendingExp $pageName camera -var CAMERA 125 book getword dqstatsPendingExp $pageName exp_tag -var EXP_TAG 126 book getword dqstatsPendingExp $pageName dqstats_id -var DQSTATS_ID 127 # book getword dqstatsPendingExp $pageName camroot -var CAMROOT 128 # book getword dqstatsPendingExp $pageName workdir -var WORKDIR_TEMPLATE 129 # book getword dqstatsPendingExp $pageName reduction -var REDUCTION 130 # book getword dqstatsPendingExp $pageName dvodb -var DVODB 131 # book getword dqstatsPendingExp $pageName image_only -var IMAGE_ONLY 132 book getword dqstatsPendingExp $pageName dbname -var DBNAME 123 book setword dqstatsPendingBundle $pageName pantaskState RUN 124 book getword dqstatsPendingBundle $pageName camera -var CAMERA 125 book getword dqstatsPendingBundle $pageName dqstats_id -var DQSTATS_ID 126 book getword dqstatsPendingBundle $pageName dbname -var DBNAME 133 127 134 128 # specify choice of remote host based on camera and chip (class_id) … … 153 147 stderr $LOGDIR/dqstats.log 154 148 155 $run = dqstats_bundle.pl --exp_tag $EXP_TAG --dqstats_id $DQSTATS_ID --camera GPC1 --redirect-output 156 # if ("$REDUCTION" != "NULL") 157 # $run = $run --reduction $REDUCTION 158 # end 159 # if ("$IMAGE_ONLY" == "T") 160 # $run = $run --image-only 161 # end 162 149 $run = dqstats_bundle.pl --dqstats_id $DQSTATS_ID --camera $CAMERA --redirect-output 163 150 164 151 add_standard_args run … … 176 163 # success 177 164 task.exit default 178 process_exit dqstatsPending Exp$options:0 $JOB_STATUS165 process_exit dqstatsPendingBundle $options:0 $JOB_STATUS 179 166 end 180 167 … … 183 170 showcommand crash 184 171 echo "hostname: $JOB_HOSTNAME" 185 book setword dqstatsPending Exp$options:0 pantaskState CRASH172 book setword dqstatsPendingBundle $options:0 pantaskState CRASH 186 173 end 187 174 … … 189 176 task.exit timeout 190 177 showcommand timeout 191 book setword dqstatsPending Exp$options:0 pantaskState TIMEOUT178 book setword dqstatsPendingBundle $options:0 pantaskState TIMEOUT 192 179 end 193 180 end
Note:
See TracChangeset
for help on using the changeset viewer.
