- Timestamp:
- Jul 14, 2015, 1:54:16 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
-
ippTasks/pstamp.pro (modified) (2 diffs)
-
ippTools/share/pstamptool_pendingdependent.sql (modified) (1 diff)
-
ippTools/src/pstamptool.c (modified) (2 diffs)
-
ippTools/src/pstamptoolConfig.c (modified) (1 diff)
-
pstamp/scripts/Makefile.am (modified) (1 diff)
-
pstamp/scripts/pstamp_queue_update_cleanup.pl (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/pstamp.pro
r36913 r38586 18 18 $pstampCleanup_DB = 0 19 19 $pstampStopFaulted_DB = 0 20 $pstampQCleanup_DB = 0 20 21 21 22 # give up on dependents with fault_count >= $PSTAMP_MAX_FAULT_COUNT … … 1212 1213 end 1213 1214 end 1215 1216 task pstamp.queue.update.cleanup 1217 host local 1218 trange 22:00:00 23:59:59 -nmax 2 1219 periods -poll $RUNPOLL 1220 periods -exec 3600 1221 periods -timeout 120 1222 npending 1 1223 1224 task.exec 1225 stdout NULL 1226 stderr $LOGSUBDIR/pstamp.queue.update.cleanup.log 1227 1228 $DBNAME = $DB:$pstampQCleanup_DB 1229 $pstampQCleanup_DB++ 1230 if ($pstampQCleanup_DB >= $DB:n) set pstampQCleanup_DB = 0 1231 1232 $run = pstamp_queue_update_cleanup.pl -$PS_DBSERVER --imagedb gpc1 --label ps_ud% 1233 add_standard_args run 1234 echo $run 1235 command $run 1236 end 1237 1238 task.exit $EXIT_SUCCESS 1239 # echo nothing to do 1240 end 1241 1242 task.exit default 1243 showcommand failure 1244 end 1245 1246 task.exit crash 1247 showcommand crash 1248 end 1249 1250 task.exit timeout 1251 showcommand timeout 1252 end 1253 end -
trunk/ippTools/share/pstamptool_pendingdependent.sql
r37439 r38586 10 10 LEFT JOIN Label ON pstampRequest.label = Label.label 11 11 WHERE pstampDependent.state = 'new' 12 AND pstampDependent.fault = 013 12 AND pstampJob.state = 'run' 14 13 AND pstampRequest.state = 'run' -
trunk/ippTools/src/pstamptool.c
r38207 r38586 1435 1435 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 1436 1436 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 1437 PXOPT_LOOKUP_BOOL(includeFaulted, config->args, "-includefaulted", false); 1437 1438 1438 1439 psString query = pxDataGet("pstamptool_pendingdependent.sql"); … … 1442 1443 } 1443 1444 1445 if (!includeFaulted) { 1446 psStringAppend(&query, " AND (pstampDependent.fault = 0)\n"); 1447 } 1448 1444 1449 if (psListLength(where->list)) { 1445 1450 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 1446 psStringAppend(&query, " AND %s", whereClause);1451 psStringAppend(&query, "\n AND %s", whereClause); 1447 1452 psFree(whereClause); 1448 1453 } 1449 1454 psFree(where); 1450 1455 1451 psStringAppend(&query, " GROUP BY dep_id ORDER BY priority DESC, MIN(req_id), dep_id");1456 psStringAppend(&query, "\nGROUP BY dep_id ORDER BY priority DESC, MIN(req_id), dep_id"); 1452 1457 1453 1458 // treat limit == 0 as "no limit" -
trunk/ippTools/src/pstamptoolConfig.c
r38207 r38586 253 253 psMetadataAddStr(pendingdependentArgs, PS_LIST_TAIL, "-rlabel", 0, "define label for dependent", NULL); 254 254 psMetadataAddStr(pendingdependentArgs, PS_LIST_TAIL, "-imagedb", 0, "define imagedb for depenent", NULL); 255 psMetadataAddBool(pendingdependentArgs, PS_LIST_TAIL, "-includefaulted", 0, "include faulted dependents in the output", false); 255 256 psMetadataAddU64(pendingdependentArgs, PS_LIST_TAIL, "-limit", 0, "limit result set to N items", 0); 256 257 psMetadataAddBool(pendingdependentArgs, PS_LIST_TAIL, "-simple", 0, "use the simple output format", false); -
trunk/pstamp/scripts/Makefile.am
r36634 r38586 13 13 pstamp_queue_cleanup.pl \ 14 14 pstamp_queue_requests.pl \ 15 pstamp_queue_update_cleanup.pl \ 15 16 pstamp_request_file \ 16 17 pstamp_results_file.pl \
Note:
See TracChangeset
for help on using the changeset viewer.
