Skip to content

Commit 567a5dd

Browse files
feeder: default order is by priority, then by increasing WU create time
Do retries of failed jobs before new jobs
1 parent 7a2c488 commit 567a5dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sched/feeder.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,9 @@ int main(int argc, char** argv) {
730730
void* p;
731731
char path[MAXPATHLEN], order_buf[1024];
732732

733+
// this is a reasonable default. Do retries before new jobs
734+
order_clause = "order by r1.priority desc, r1.workunitid";
735+
733736
for (i=1; i<argc; i++) {
734737
if (is_arg(argv[i], "d") || is_arg(argv[i], "debug_level")) {
735738
if (!argv[++i]) {

0 commit comments

Comments
 (0)