clear_queue_non_current: Don't use isCurrent
[?]
Aug 16, 2013, 1:15 PM
DETQRBBRPJ2ICGNLQVCD3H6A23ZHQNYPC5XVDISJYEFSM2GVLFWACDependencies
- [2]
R6B5CAFFLet Builds.timestamp refer to the time the build was added - [3]
67NFGL7Dadd links in admin page to clear queue (all non-running builds, and all non-running old (non-current) builds) - [4]
5NSQUYBSClear failed builds etc.: Redirect back to the referrer - [*]
ZWCTAZGLadded newsitems, added some admin options to clear various caches.
Change contents
- replacement in src/lib/Hydra/Controller/Admin.pm at line 38
$c->model('DB::Builds')->search({finished => 0, iscurrent => 0, busy => 0})->update({ finished => 1, buildstatus => 4, starttime => $time, stoptime => $time });$c->model('DB::Builds')->search({ finished => 0, busy => 0, id => { -not_in => \ "select build from JobsetEvalMembers where eval in (select max(id) from JobsetEvals where hasNewBuilds = 1 group by project, jobset)" }}, {})->update({ finished => 1, buildstatus => 4, starttime => $time, stoptime => $time });