hydra-queue-runner: Set the start time properly

[?]
Sep 21, 2013, 7:38 PM
FUJ3A66L5ENVHQFS3F4W3SBPW64Q6HQ5A5VW36IVC35NUMWZNJCQC

Dependencies

  • [2] CQJX3RGU hydra-queue-runner: Don't kill builds we just started
  • [3] EX4FXA5T Handle active build steps of aborted builds properly
  • [4] I7UELKBV hydra-queue-runner: Don't unlock builds we just started
  • [5] D6YQQQCN * Don't ignore SIGCHLD after all, Perl doesn't like it. Just do
  • [6] TULPZ62Y * Perform builds in parallel.
  • [7] LZO3C2KI * Hack around those SQLite timeouts: just retry the transaction.
  • [8] DQD7JMSU * Fix the terminology.
  • [9] 7YBYT2LQ
  • [10] MOX7XJ2E Merge the BuildSchedulingInfo table into the Builds table
  • [11] Y6AHH4TH Remove the logfile and logSize columns from the database
  • [12] WM5WAST3 * Monitor for dead builds all the time.
  • [13] TFLAR4KA hydra-queue-runner: Start as many builds as possible on each iteration
  • [14] GEADFVZ5 hydra-queue-runner: Improved scheduling
  • [*] NREF6YOA * Don't start more builds concurrently than allowed for each system

Change contents

  • replacement in src/script/hydra-queue-runner at line 31
    [3.116][2.0:81]()
    if (!defined $lastTime || $build->starttime < $lastTime - 180) {
    [3.116]
    [3.558]
    if (!defined $lastTime || $build->starttime < $lastTime - 300) {
  • replacement in src/script/hydra-queue-runner at line 39
    [3.301][3.10710:10770]()
    $build->update({ busy => 0, locker => ""});
    [3.301]
    [3.283]
    $build->update({ busy => 0, locker => "" });
  • edit in src/script/hydra-queue-runner at line 177
    [3.7085][3.7085:7135]()
    , starttime => time()
  • edit in src/script/hydra-queue-runner at line 186
    [16.1903]
    [3.8821]
    $lastTime = time();
    $_->update({ starttime => time() }) foreach @buildsStarted;
  • replacement in src/script/hydra-queue-runner at line 214
    [3.1291][3.7522:7623]()
    $build->busy(0);
    $build->locker($$);
    $build->update;
    [3.1291]
    [3.9269]
    $build->update({ busy => 0, locker => $$ });
  • edit in src/script/hydra-queue-runner at line 234
    [3.99][3.99:127](),[3.127][2.82:83]()
    $lastTime = time();