Do not delete builds when clearing the queue. Fixes #8.
[?]
Apr 30, 2012, 8:13 PM
RXSEJG7WZAVP3XCRF3GWBM4JTNTEK7E7MANOJ2K5HZ5W4GU6ZL3ACDependencies
- [2]
JARRBLZDBootstrapify the Hydra forms (except the project and jobset edit pages) - [3]
SMCOU72Fhydra: add some admin for adding/enabling/etc build machines - [4]
QT4FO2HPrefactored admin controller, using chains, to avoid using requireadmin on each endpoint - [5]
MOX7XJ2EMerge the BuildSchedulingInfo table into the Builds table - [6]
67NFGL7Dadd links in admin page to clear queue (all non-running builds, and all non-running old (non-current) builds) - [*]
ZWCTAZGLadded newsitems, added some admin options to clear various caches.
Change contents
- replacement in src/lib/Hydra/Controller/Admin.pm at line 328
# !!! Mark the builds as cancelled instead.$c->model('DB::Builds')->search({finished => 0, iscurrent => 0, busy => 0})->delete_all;$c->model('DB::Builds')->search({finished => 0, iscurrent => 0, busy => 0})->update({ finished => 1, buildstatus => 4, timestamp => time}); - edit in src/lib/Hydra/Controller/Admin.pm at line 333[3.261]→[3.261:351](∅→∅),[3.351]→[3.769:894](∅→∅),[3.894]→[3.443:476](∅→∅),[3.443]→[3.443:476](∅→∅),[3.476]→[3.5668:5670](∅→∅),[3.5668]→[3.5668:5670](∅→∅),[3.5670]→[2.627:628](∅→∅),[2.628]→[3.5670:5671](∅→∅),[3.5670]→[3.5670:5671](∅→∅)
sub clear_queue : Chained('admin') Path('clear-queue') Args(0) {my ($self, $c) = @_;# !!! Mark the builds as cancelled instead.$c->model('DB::Builds')->search({finished => 0, busy => 0})->delete_all;$c->res->redirect("/admin");}