* hydra: queue stats (nr running builds / nr queued builds)

[?]
Feb 12, 2010, 10:19 AM
KSVD6RAPQW57PJEN3VY5XFMSHMLKC5JN6BVVNA4GFNXTVGG3FZKQC

Dependencies

  • [2] QL55ECJ6 - adapted ui for hydra, more in line with nixos.org website
  • [3] 2RGAZCKY * in topbar, use 'Projects' in stead of 'Overview'
  • [4] ZI535LI6 * hydra: 'new' UI for project/jobset/job/build
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] VHYWSRIS * Add nix version to footer of hydra pages

Change contents

  • edit in src/lib/Hydra/Controller/Root.pm at line 19
    [7.172]
    [6.1351]
    $c->stash->{nrRunningBuilds} = $c->model('DB::BuildSchedulingInfo')->search({ busy => 1 }, {})->count();
    $c->stash->{nrQueuedBuilds} = $c->model('DB::BuildSchedulingInfo')->count();
  • replacement in src/root/topbar.tt at line 26
    [2.7277][2.7277:7304]()
    title = "Queue" %]
    [2.7277]
    [2.7304]
    title = "Queue" %] ([% nrRunningBuilds %]/[% nrQueuedBuilds %])