clear_queue_non_current: Don't use isCurrent

[?]
Aug 16, 2013, 1:15 PM
DETQRBBRPJ2ICGNLQVCD3H6A23ZHQNYPC5XVDISJYEFSM2GVLFWAC

Dependencies

  • [2] R6B5CAFF Let Builds.timestamp refer to the time the build was added
  • [3] 5NSQUYBS Clear failed builds etc.: Redirect back to the referrer
  • [4] 67NFGL7D add links in admin page to clear queue (all non-running builds, and all non-running old (non-current) builds)
  • [*] ZWCTAZGL added newsitems, added some admin options to clear various caches.

Change contents

  • replacement in src/lib/Hydra/Controller/Admin.pm at line 38
    [2.459][2.459:624]()
    $c->model('DB::Builds')->search({finished => 0, iscurrent => 0, busy => 0})->update({ finished => 1, buildstatus => 4, starttime => $time, stoptime => $time });
    [2.459]
    [3.0]
    $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 });