diff --git a/ChangeLog b/ChangeLog index 7fbf6588a0b516831a61c3601de23753b702c555..665f226a6d63fdddb097d7ca5375d38151a7d5d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2006-10-24 Per Cederqvist <ceder@sedesopim.lysator.liu.se> + Prefer new jobs to old jobs. + + * distribute-tasks (read_new_tasks): Insert new tasks first, on + the assumption that it is more important to back up new areas than + to refresh old areas. + LYSrdiff now randomizes the backup order a bit less. * distribute-tasks (ordered_tasks): New global variable. diff --git a/distribute-tasks b/distribute-tasks index 698302980016b64a800370b292a2f2bb07739cae..e3aeacc6478f3233220bc82582824f2329232849 100755 --- a/distribute-tasks +++ b/distribute-tasks @@ -87,7 +87,7 @@ def read_new_tasks(): if (info.host(), info.directory()) not in tasks_per_source: info.set_lysrdiffpart(newtasks()) tasks_per_source[(info.host(), info.directory())] = info - ordered_tasks.append(info) + ordered_tasks.insert(0, info) new_found = True return new_found